This commit is contained in:
shoopea 2019-11-05 10:55:12 +08:00
parent 2f93078f88
commit cc810d2f5c

2
td.go
View File

@ -79,6 +79,8 @@ func ListenTG(c *tdlib.Client) {
lastChatTDMsgMux[m.ChatID64] = new(sync.Mutex) lastChatTDMsgMux[m.ChatID64] = new(sync.Mutex)
} }
lastChatMsgMux.Unlock() lastChatMsgMux.Unlock()
} else {
lastChatMsgMux.RUnlock()
} }
for { for {
lastChatTDMsgMux[m.ChatID64].Lock() lastChatTDMsgMux[m.ChatID64].Lock()