mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-29 23:04:29 +00:00
bugfix: uncaught exception when ws fails or times out handshake
This commit is contained in:
1 parent
6f7556981e
commit
6033676f6b
1 file changed
+4
-2
@@ -109,8 +109,10 @@ class WsRequestor extends BaseRequestor {
|
||||
|
||||
close() {
|
||||
this.logger.info('WsRequestor: closing socket');
|
||||
this.ws && this.ws.close();
|
||||
this.ws.removeAllListeners();
|
||||
if (this.ws) {
|
||||
this.ws.close();
|
||||
this.ws.removeAllListeners();
|
||||
}
|
||||
}
|
||||
|
||||
_connect() {
|
||||
|
||||
Reference in new issue
Block a user