minor bug fix

This commit is contained in:
hydrabolt
2015-08-11 22:30:37 +01:00
parent 07db06f1c1
commit 8de8b6d20e
2 changed files with 4 additions and 0 deletions

View File

@@ -161,6 +161,9 @@ exports.Client.prototype.connectWebsocket = function(cb) {
}
this.websocket.keepAlive = function() {
if(this.readyState !== 1)
return false;
this.sendPacket({
op: 1,
d: Date.now()