last fix
This commit is contained in:
parent
4d13382444
commit
dd32175943
7
job.go
7
job.go
@ -2100,16 +2100,17 @@ func jobGetStash(j Job) {
|
||||
} else if rule.MsgTypeID64 == cacheObjSubType[`msg_exchange_ack`] {
|
||||
p.CleanupMsg = append(p.CleanupMsg, *m)
|
||||
fmt.Printf("jobGetStash : Ack received : deleting current client\n")
|
||||
l := len(p.ClientID64)
|
||||
for k, v := range p.ClientID64 {
|
||||
fmt.Printf("jobGetStash : testing client [%d] : %d\n", k, v)
|
||||
if v == j.UserID64 {
|
||||
l := len(p.ClientID64)
|
||||
fmt.Printf("jobGetStash : testing client [%d/%d] : %d\n", k+1, l, v)
|
||||
if v == p.UserID64 {
|
||||
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
|
||||
}
|
||||
}
|
||||
fmt.Printf("jobGetStash : %d clients remaining\n", len(p.ClientID64))
|
||||
fmt.Printf("jobGetStash : clearing trigger for next client\n")
|
||||
j.Trigger = 0
|
||||
} else if rule.MsgTypeID64 == cacheObjSubType[`msg_busy`] {
|
||||
|
Loading…
Reference in New Issue
Block a user