forgotten how to use my function getLockedClient

This commit is contained in:
shoopea 2020-04-07 10:30:00 +08:00
parent b7b8d440f0
commit 0c36738b0d

8
job.go
View File

@ -1868,10 +1868,10 @@ func jobSetDef(j Job) {
cwm, err := parseSubTypeMessageMeAck(msg, rule.re)
if cwm.State == `🛌Rest` {
clt, err := getLockedClient(j.UserID64, false)
logOnError(err, "jobSetDef : getLockedClient")
clt.Mux.Unlock()
clientSendCWMsg(j.UserID64, clt.Config.Wartime)
if clt, ok := getLockedClient(j.UserID64, false); ok {
clt.Mux.Unlock()
clientSendCWMsg(j.UserID64, clt.Config.Wartime)
}
}
err = setJobDone(j.ID64)