mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
lint.
This commit is contained in:
parent
30952b8222
commit
134db3d0c9
@ -78,7 +78,7 @@ export class Reconnector extends EventEmitter<ReconnectorEvents> {
|
||||
// register connect and disconnect handlers with current class
|
||||
// as 'this' context, store them to a variable so that they
|
||||
// can be later unregistered
|
||||
|
||||
|
||||
this._onConnectHandle = this.onConnect.bind(this)
|
||||
this._conn.on('connect', this._onConnectHandle)
|
||||
|
||||
@ -111,7 +111,7 @@ export class Reconnector extends EventEmitter<ReconnectorEvents> {
|
||||
private onDisconnect() {
|
||||
this.clearTimeout()
|
||||
|
||||
// only if connection is open, fire disconnect event
|
||||
// only if connection is open, fire disconnect event
|
||||
// and start reconnecteing logic
|
||||
if (this._open) {
|
||||
this.emit('disconnect')
|
||||
@ -174,7 +174,7 @@ export class Reconnector extends EventEmitter<ReconnectorEvents> {
|
||||
// assuming close event can fire multiple times, the same
|
||||
// precautions need to be taken as in open event, so that
|
||||
// close event fires only once
|
||||
|
||||
|
||||
if (this._open) {
|
||||
this._open = false
|
||||
this._last_connected = undefined
|
||||
|
Loading…
Reference in New Issue
Block a user