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,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