mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 14:11:09 +00:00
Webpack build for branch master: a22b856494
This commit is contained in:
parent
f7fd04544e
commit
a59d3d567c
2 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue