mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-26 12:41:03 -04:00
Merge pull request #610 from Gjum/patch/socket-end
Distinguish socket ending from other end reasons
This commit is contained in:
commit
d171e47554
@ -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