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

pull/885/head
Wim 4 years ago committed by GitHub
parent a18807f19e
commit 8d08e348a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save