Skip to content

Commit e77906c

Browse files
author
Nick Schwab
committed
+ stop connection interval upon connection close
1 parent 7232473 commit e77906c

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

lib/node/dist/index.js

Lines changed: 1 addition & 6 deletions
Large diffs are not rendered by default.

lib/node/src/transport/WebSocketServer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class WebSocketServer extends TransportBase {
9494
this._connectionLostInterval = setInterval(() => {
9595
if (client.isAlive === false) {
9696
console.log('server deemed client dead');
97-
this._stopConnectionLostInterval();
9897
return client.terminate();
9998
}
10099

@@ -117,7 +116,6 @@ class WebSocketServer extends TransportBase {
117116
stop () {
118117
const client = this._transportConfig.getClient();
119118

120-
this._stopConnectionLostInterval();
121119
client.terminate();
122120

123121
return this;

0 commit comments

Comments
 (0)