File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ import {cloneDeep} from 'lodash';
2525import { Server , ServerOptions , Socket } from 'socket.io' ;
2626import {
2727 getSocketIoMetadata ,
28- SocketIoMetadata ,
2928 SOCKET_IO_CONNECT_METADATA ,
3029 SOCKET_IO_METADATA ,
3130 SOCKET_IO_SUBSCRIBE_METADATA ,
31+ SocketIoMetadata ,
3232} from './decorators' ;
3333import { SocketIoBindings , SocketIoTags } from './keys' ;
3434import { SocketIoControllerFactory } from './socketio-controller-factory' ;
@@ -236,9 +236,11 @@ export class SocketIoServer extends Context {
236236 */
237237 async stop ( ) {
238238 const closePromise = new Promise < void > ( ( resolve , _reject ) => {
239- this . io . close ( ( ) => {
240- resolve ( ) ;
241- } ) ;
239+ this . io
240+ . close ( ( ) => {
241+ resolve ( ) ;
242+ } )
243+ . catch ( err => { } ) ;
242244 } ) ;
243245 await closePromise ;
244246 if ( this . httpServer ) await this . httpServer . stop ( ) ;
You can’t perform that action at this time.
0 commit comments