From cc810d2f5c00df066ef9aec03f24467a36dcb9c2 Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 5 Nov 2019 10:55:12 +0800 Subject: [PATCH] unlock --- td.go | 2 ++ 1 file changed, 2 insertions(+) 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()