Skip to content

Commit 4f5a1d2

Browse files
committed
chore: fix lint error
1 parent ecfb6c9 commit 4f5a1d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/routes/ws/channels/socket-io-channel.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ export class SocketIOChannel extends WebSocketChannel {
123123
if (!this.io && callback) {
124124
callback();
125125
}
126-
this.io?.close(callback);
126+
this.io?.close(callback).catch(err => {
127+
logger.error(err, `Error closing socket.io`);
128+
});
127129
this.io = undefined;
128130
}
129131

0 commit comments

Comments
 (0)