5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 21:50:28 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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