X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/80e348724041a694002fc38f57e8868b9b9a2be9..c781f79f3c8cb9a7577ee1574d196988da2719b3:/whatsapp.go?ds=inline diff --git a/whatsapp.go b/whatsapp.go index ee785a3..738ef8d 100644 --- a/whatsapp.go +++ b/whatsapp.go @@ -279,7 +279,8 @@ func (w *WhatsApp) Run(ctx context.Context, l *TurnLoop, notify func(Event)) err var pairing sync.WaitGroup - cancel := func() {} + cancel := func() { + } defer func() { cancel() pairing.Wait() @@ -316,7 +317,8 @@ func (w *WhatsApp) Run(ctx context.Context, l *TurnLoop, notify func(Event)) err cancel() pairing.Wait() - cancel = func() {} + cancel = func() { + } switch { case request.unlink: