fix shop slave
This commit is contained in:
parent
f33570cc6f
commit
47e6db4353
14
job.go
14
job.go
@ -2345,12 +2345,7 @@ func jobShopsSlave(j Job) {
|
||||
}
|
||||
TGCmdQueue <- c
|
||||
|
||||
for i, link := range p.Shops {
|
||||
if cwm.Link == link {
|
||||
p.Shops = append(p.Shops[:i], p.Shops[i+1:]...)
|
||||
break
|
||||
}
|
||||
}
|
||||
p.Shops = append(p.Shops[:0], p.Shops[i+1:]...)
|
||||
|
||||
err = setJobPayloadJSON(j.ID64, p)
|
||||
logOnError(err, "jobShopsSlave : setJobPayloadJSON")
|
||||
@ -2366,12 +2361,7 @@ func jobShopsSlave(j Job) {
|
||||
err = setJobPayloadJSONUnsafe(p.JobCallbackID64, p2)
|
||||
muxObjJob.Unlock()
|
||||
|
||||
for i, link := range p.Shops {
|
||||
if cwm.Link == link {
|
||||
p.Shops = append(p.Shops[:i], p.Shops[i+1:]...)
|
||||
break
|
||||
}
|
||||
}
|
||||
p.Shops = append(p.Shops[:0], p.Shops[i+1:]...)
|
||||
|
||||
err = setJobPayloadJSON(j.ID64, p)
|
||||
logOnError(err, "jobShopsSlave : setJobPayloadJSON")
|
||||
|
Loading…
Reference in New Issue
Block a user