forgotten how to use my function getLockedClient
This commit is contained in:
parent
b7b8d440f0
commit
0c36738b0d
4
job.go
4
job.go
@ -1868,11 +1868,11 @@ func jobSetDef(j Job) {
|
|||||||
cwm, err := parseSubTypeMessageMeAck(msg, rule.re)
|
cwm, err := parseSubTypeMessageMeAck(msg, rule.re)
|
||||||
|
|
||||||
if cwm.State == `🛌Rest` {
|
if cwm.State == `🛌Rest` {
|
||||||
clt, err := getLockedClient(j.UserID64, false)
|
if clt, ok := getLockedClient(j.UserID64, false); ok {
|
||||||
logOnError(err, "jobSetDef : getLockedClient")
|
|
||||||
clt.Mux.Unlock()
|
clt.Mux.Unlock()
|
||||||
clientSendCWMsg(j.UserID64, clt.Config.Wartime)
|
clientSendCWMsg(j.UserID64, clt.Config.Wartime)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
err = setJobDone(j.ID64)
|
err = setJobDone(j.ID64)
|
||||||
logOnError(err, "jobSetDef : setJobDone")
|
logOnError(err, "jobSetDef : setJobDone")
|
||||||
|
Loading…
Reference in New Issue
Block a user