fix job shop slaves

This commit is contained in:
shoopea 2020-02-11 10:13:19 +08:00
parent 47e6db4353
commit 4aea83ebbe

4
job.go
View File

@ -2345,7 +2345,7 @@ func jobShopsSlave(j Job) {
}
TGCmdQueue <- c
p.Shops = append(p.Shops[:0], p.Shops[i+1:]...)
p.Shops = append(p.Shops[:0], p.Shops[1:]...)
err = setJobPayloadJSON(j.ID64, p)
logOnError(err, "jobShopsSlave : setJobPayloadJSON")
@ -2361,7 +2361,7 @@ func jobShopsSlave(j Job) {
err = setJobPayloadJSONUnsafe(p.JobCallbackID64, p2)
muxObjJob.Unlock()
p.Shops = append(p.Shops[:0], p.Shops[i+1:]...)
p.Shops = append(p.Shops[:0], p.Shops[1:]...)
err = setJobPayloadJSON(j.ID64, p)
logOnError(err, "jobShopsSlave : setJobPayloadJSON")