This commit is contained in:
Travis CI 2016-12-28 03:32:00 +00:00
parent 79bee48ccc
commit dcc6e3e274
2 changed files with 3 additions and 5 deletions

View file

@ -21860,11 +21860,9 @@ class WebSocketPacketManager {
this.ws.client._pong(this.ws.client._pingTimestamp);
this.ws.lastHeartbeatAck = true;
this.ws.client.emit('debug', 'Heartbeat acknowledged');
}
if (packet.op === Constants.OPCodes.HEARTBEAT) {
} else if (packet.op === Constants.OPCodes.HEARTBEAT) {
this.client.ws.send({ op: Constants.OPCodes.HEARTBEAT });
this.ws.client.emit('debug', 'Received gateway heartbeat!');
this.ws.client.emit('debug', 'Received gateway heartbeat');
}
if (this.ws.status === Constants.Status.RECONNECTING) {

File diff suppressed because one or more lines are too long