Fix travis builds

This commit is contained in:
Amish Shah
2016-10-25 14:38:56 +01:00
parent 91ba59c43d
commit 5844bbb54c
6 changed files with 9 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ class VoiceWebSocket extends EventEmitter {
}
});
} else {
reject(new Error('websocket not open for ' + data));
reject(new Error(`voice websocket not open to send ${data}`));
}
});
}
@@ -148,9 +148,8 @@ class VoiceWebSocket extends EventEmitter {
/**
* Called whenever the connection to the WebSocket Server is lost
* @param {CloseEvent} event the close event
*/
onClose(event) {
onClose() {
// #todo see if the connection is open before reconnecting
if (!this.dead) this.client.setTimeout(this.connect.bind(this), this.attempts * 1000);
}