aboutsummaryrefslogtreecommitdiff
path: root/telegram/connect.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2024-01-25 02:54:25 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2024-01-25 02:54:25 +0300
commitb9b6ba14a442f3c4394c535461bd6b1d03a7ef7b (patch)
treecfba07221257597d740619081c197fbe5814ac06 /telegram/connect.go
parentb40ccf4a4d1391ba1f67a159697fea859e2a92fd (diff)
Fix stuck logout
Diffstat (limited to 'telegram/connect.go')
-rw-r--r--telegram/connect.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/connect.go b/telegram/connect.go
index 6c88cd1..afa2d1f 100644
--- a/telegram/connect.go
+++ b/telegram/connect.go
@@ -68,10 +68,10 @@ func (stateHandler *clientAuthorizer) Handle(c *client.Client, state client.Auth
return nil
case client.TypeAuthorizationStateLoggingOut:
- return client.ErrNotSupportedAuthorizationState
+ return nil
case client.TypeAuthorizationStateClosing:
- return client.ErrNotSupportedAuthorizationState
+ return nil
case client.TypeAuthorizationStateClosed:
return client.ErrNotSupportedAuthorizationState