diff --git a/td.go b/td.go index f5b9730..1d365f7 100644 --- a/td.go +++ b/td.go @@ -79,6 +79,8 @@ func ListenTG(c *tdlib.Client) { lastChatTDMsgMux[m.ChatID64] = new(sync.Mutex) } lastChatMsgMux.Unlock() + } else { + lastChatMsgMux.RUnlock() } for { lastChatTDMsgMux[m.ChatID64].Lock()