From 8d08e348a98ba59365b9d2146a95b0e45447ceb1 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 31 Mar 2020 23:26:53 +0200 Subject: Reset start timestamp on reconnect (whatsapp). Fixes #1059 (#1064) --- bridge/whatsapp/handlers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'bridge/whatsapp') diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go index eaa3f6f9..9a6e9d71 100644 --- a/bridge/whatsapp/handlers.go +++ b/bridge/whatsapp/handlers.go @@ -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 } } -- cgit v1.2.3