diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-09-01 00:26:35 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-09-01 00:26:35 +0300 |
commit | 4588170d1e43db780c551177f5996598fe25bc6e (patch) | |
tree | bc9ec31b03fd179cb1b812df5c1493ab816f59fb /telegram/client.go | |
parent | aa561c5be606c14cfd211df694ef0be856195df7 (diff) |
Harden the authorizer access to prevent crashesv1.8.1
Diffstat (limited to 'telegram/client.go')
-rw-r--r-- | telegram/client.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/telegram/client.go b/telegram/client.go index e9acd20..6f6d719 100644 --- a/telegram/client.go +++ b/telegram/client.go @@ -74,6 +74,9 @@ type clientLocks struct { resourcesLock sync.Mutex outboxLock sync.Mutex lastMsgHashesLock sync.Mutex + + authorizerReadLock sync.Mutex + authorizerWriteLock sync.Mutex } // NewClient instantiates a Telegram App |