This commit is contained in:
cdle
2021-10-11 20:33:14 +08:00
parent a5fd0ae04f
commit e3c1d09800
+1 -1
View File
@@ -250,7 +250,7 @@ func (_ *BaseSender) Await(sender Sender, callback func(string, Sender, error) i
c.Result = make(chan interface{}, 1)
key := fmt.Sprintf("u=%v&c=%v&i=%v", sender.GetUserID(), sender.GetChatID(), sender.GetImType())
if oc, ok := waits.LoadOrStore(key, c); ok {
oc.(Carry).Chan <- InterruptError
oc.(*Carry).Chan <- InterruptError
}
fmt.Println(key)
fmt.Println(waits.Load(key))