mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-26 12:41:03 -04:00
Distinguish socket ending from other end reasons
This commit is contained in:
parent
8bccc3cb75
commit
66e4bbc3b3
@ -132,7 +132,7 @@ class Client extends EventEmitter {
|
||||
this.socket.removeListener('close', endSocket)
|
||||
this.socket.removeListener('end', endSocket)
|
||||
this.socket.removeListener('timeout', endSocket)
|
||||
this.emit('end', this._endReason)
|
||||
this.emit('end', this._endReason || 'SocketClosed')
|
||||
}
|
||||
|
||||
const onFatalError = (err) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user