mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
bugfix: uncaught exception when ws fails or times out handshake
This commit is contained in:
@@ -109,9 +109,11 @@ class WsRequestor extends BaseRequestor {
|
|||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.logger.info('WsRequestor: closing socket');
|
this.logger.info('WsRequestor: closing socket');
|
||||||
this.ws && this.ws.close();
|
if (this.ws) {
|
||||||
|
this.ws.close();
|
||||||
this.ws.removeAllListeners();
|
this.ws.removeAllListeners();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_connect() {
|
_connect() {
|
||||||
assert(!this.ws);
|
assert(!this.ws);
|
||||||
|
|||||||
Reference in New Issue
Block a user