mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-14 00:32:58 +02:00
reset _total_reconnects.
This commit is contained in:
parent
7be220c2d2
commit
1e78e4e191
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue