reset _total_reconnects on open.

This commit is contained in:
Miroslav Šedivý 2021-07-30 22:52:16 +02:00
parent 3fa0831f43
commit 0554b69d82

View File

@ -123,6 +123,7 @@ export class Reconnector extends EventEmitter<ReconnectorEvents> {
if (!this._open) { if (!this._open) {
this._open = true this._open = true
this._total_reconnects = 0
this.emit('open') this.emit('open')
} }