Skip to content

Commit e396f5d

Browse files
Resolve the close promise
Signed-off-by: Peter Broadhurst <[email protected]>
1 parent 029e343 commit e396f5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/websocket.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export class FireFlyWebSocket {
9393
.on('close', () => {
9494
if (this.closed) {
9595
this.logger.log('Closed');
96+
this.closed(); // do this after all logging
9697
} else {
9798
this.disconnectDetected = true;
9899
this.reconnect('Closed by peer');

0 commit comments

Comments
 (0)