This commit is contained in:
shoopea 2020-06-29 10:43:39 +02:00
parent d2b8ee12f8
commit 4bad18ecdf

3
job.go
View File

@ -2097,10 +2097,11 @@ func jobGetStash(j Job) {
for k, v := range p.ClientID64 {
fmt.Printf("jobGetStash : testing client [%d] : %d\n", k, v)
if v == j.UserID64 {
fmt.Printf("jobGetStash : deleting client\n")
l := len(p.ClientID64)
p.ClientID64[l-1], p.ClientID64[k] = p.ClientID64[k], p.ClientID64[l-1]
p.ClientID64 = p.ClientID64[:l-1]
fmt.Printf("jobGetStash : client deleted\n")
break
}
}
j.Trigger = 0