Webpack build for branch master: a22b856494

This commit is contained in:
Travis CI 2018-01-20 08:09:45 +00:00
parent f7fd04544e
commit a59d3d567c
2 changed files with 6 additions and 4 deletions

View file

@ -14639,13 +14639,15 @@ class WebSocketConnection extends EventEmitter {
this.inflate.push(data, flush && zlib.Z_SYNC_FLUSH);
if (!flush) return;
let packet;
try {
const packet = WebSocket.unpack(this.inflate.result);
this.onPacket(packet);
if (this.client.listenerCount('raw')) this.client.emit('raw', packet);
packet = WebSocket.unpack(this.inflate.result);
} catch (err) {
this.client.emit('debug', err);
return;
}
this.onPacket(packet);
if (this.client.listenerCount('raw')) this.client.emit('raw', packet);
}
/**

File diff suppressed because one or more lines are too long