4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 07:29:24 +00:00

Reset start timestamp on reconnect (whatsapp). Fixes #1059 (#1064)

This commit is contained in:
Wim
2020-03-31 23:26:53 +02:00
committed by GitHub
parent a18807f19e
commit 8d08e348a9

View File

@ -55,6 +55,7 @@ func (b *Bwhatsapp) reconnect(err error) {
err := b.conn.Restore()
if err == nil {
bf.Reset()
b.startedAt = uint64(time.Now().Unix())
return
}
}