X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/d8f3785bb69288663f4cc46bf4d609c6770452d5..0cb73c3dde36d0078f3c1aa4200f2edcb5ceed38:/whatsapp.go?ds=inline diff --git a/whatsapp.go b/whatsapp.go index 1e6bfa8..df43e8e 100644 --- a/whatsapp.go +++ b/whatsapp.go @@ -309,6 +309,7 @@ func (w *WhatsApp) Run(ctx context.Context, l *TurnLoop, notify func(Event)) err cancel := func() { } + defer func() { cancel() pairing.Wait() @@ -456,7 +457,7 @@ func (w *WhatsApp) loggedOut(ctx context.Context, l *TurnLoop) error { return nil } - w.logger.Error("logged out by the phone, run /whatsapp pair PHONE") + w.logger.Error("logged out by the phone") err := w.inbox.deliver(ctx, l, w.link(), true) if err != nil {