unlock
This commit is contained in:
parent
2f93078f88
commit
cc810d2f5c
2
td.go
2
td.go
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user