diff --git a/telegram/connect.go b/telegram/connect.go index a4dfa37..37f719e 100644 --- a/telegram/connect.go +++ b/telegram/connect.go @@ -112,6 +112,7 @@ func (c *Client) Connect(resource string) error { tdlibClient, err := client.NewClient(c.authorizer, c.options...) if err != nil { + c.locks.authorizationReady.Done() return errors.Wrap(err, "Couldn't initialize a Telegram client instance") }