mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
reset _total_reconnects.
This commit is contained in:
parent
7be220c2d2
commit
1e78e4e191
@ -68,6 +68,7 @@ export class Reconnector extends EventEmitter<ReconnectorEvents> {
|
|||||||
|
|
||||||
if (this._open) {
|
if (this._open) {
|
||||||
this._last_connected = new Date()
|
this._last_connected = new Date()
|
||||||
|
this._total_reconnects = 0
|
||||||
this.emit('connect')
|
this.emit('connect')
|
||||||
} else {
|
} else {
|
||||||
this._conn.disconnect()
|
this._conn.disconnect()
|
||||||
|
Loading…
Reference in New Issue
Block a user