reset _total_reconnects.

This commit is contained in:
Miroslav Šedivý 2021-07-30 22:34:44 +02:00
parent 7be220c2d2
commit 1e78e4e191

View File

@ -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()