Skip to content

Commit 2c9c0ca

Browse files
committed
fix: fix lint error
Signed-off-by: dhmlau <[email protected]>
1 parent 129a29e commit 2c9c0ca

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

extensions/socketio/src/socketio.server.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import {cloneDeep} from 'lodash';
2525
import {Server, ServerOptions, Socket} from 'socket.io';
2626
import {
2727
getSocketIoMetadata,
28-
SocketIoMetadata,
2928
SOCKET_IO_CONNECT_METADATA,
3029
SOCKET_IO_METADATA,
3130
SOCKET_IO_SUBSCRIBE_METADATA,
31+
SocketIoMetadata,
3232
} from './decorators';
3333
import {SocketIoBindings, SocketIoTags} from './keys';
3434
import {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();

0 commit comments

Comments
 (0)