bugfix: repeated ws failures should stop eventually

This commit is contained in:
Dave Horton
2023-03-07 16:29:00 -05:00
parent 4919c05181
commit 2af76d94a6

View File

@@ -274,6 +274,7 @@ class WsRequestor extends BaseRequestor {
}, 'WsRequestor - unexpected response');
this.emit('connection-failure');
this.emit('not-ready', new Error(`${res.statusCode} ${res.statusMessage}`));
this.connections++;
}
_onSocketClosed() {