mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 13:45:37 -04:00
client.end should have a string argument, not an Error object.
This commit is contained in:
parent
997071ef41
commit
d6b3a91751
@ -29,7 +29,7 @@ Client.prototype.setSocket = function(socket) {
|
||||
while (true) {
|
||||
parsed = parsePacket(incomingBuffer, self.isServer);
|
||||
if (! parsed) break;
|
||||
if (parsed.error) this.end(parsed.error);
|
||||
if (parsed.error) this.end(parsed.error.message);
|
||||
packet = parsed.results;
|
||||
incomingBuffer = incomingBuffer.slice(parsed.size);
|
||||
self.emit(packet.id, packet);
|
||||
|
Loading…
x
Reference in New Issue
Block a user