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
1 changed files with 1 additions and 0 deletions

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
}
}