diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2024-01-25 02:54:25 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2024-01-25 02:54:25 +0300 |
commit | b9b6ba14a442f3c4394c535461bd6b1d03a7ef7b (patch) | |
tree | cfba07221257597d740619081c197fbe5814ac06 /telegram/connect.go | |
parent | b40ccf4a4d1391ba1f67a159697fea859e2a92fd (diff) |
Fix stuck logout
Diffstat (limited to 'telegram/connect.go')
-rw-r--r-- | telegram/connect.go | 4 |
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 |