diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-28 05:35:40 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-28 05:35:40 +0300 |
commit | 536451f648bce43aa34e90a9154adf831027dae7 (patch) | |
tree | 36c66093319e3972f97a141c68e332e25d468331 /telegram/commands.go | |
parent | fdc8397b93ed355cb931646f0c4eda496ce0e858 (diff) |
Make the chats/users cache thread-safe
Diffstat (limited to 'telegram/commands.go')
-rw-r--r-- | telegram/commands.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/commands.go b/telegram/commands.go index 533c627..558652d 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -206,7 +206,7 @@ func (c *Client) ProcessTransportCommand(cmdline string) string { return notOnline } - for id := range c.cache.chats { + for _, id := range c.cache.ChatsKeys() { c.unsubscribe(id) } |