fixes for shops jobs
This commit is contained in:
parent
4473b69002
commit
7aac758ac0
2
bot.go
2
bot.go
@ -800,7 +800,7 @@ func botShops(m *ChatWarsMessage) {
|
||||
j2 := JobPayloadShopsSlave{
|
||||
JobCallbackID64: jobID64,
|
||||
Status: 0,
|
||||
Slaves: len(clts),
|
||||
Slaves: int64(len(clts)),
|
||||
Shops: make([]string, 0),
|
||||
}
|
||||
for j, link := range cfg.Bot.Shops {
|
||||
|
@ -152,7 +152,7 @@ func getLockedAllIdleClientID64() ([]int64, error) {
|
||||
for _, c := range clients {
|
||||
if c.GameIdle {
|
||||
ids = append(ids, c.TGUserID64)
|
||||
clients[ids[id]].Mux.Lock()
|
||||
clients[c.TGUserID64].Mux.Lock()
|
||||
}
|
||||
}
|
||||
muxClients.RUnlock()
|
||||
|
4
job.go
4
job.go
@ -2181,7 +2181,7 @@ func jobCheckVaultLimit(j Job) {
|
||||
|
||||
func jobShops(j Job) {
|
||||
|
||||
err = setJobDone(j.ID64)
|
||||
err := setJobDone(j.ID64)
|
||||
logOnError(err, "jobShops : setJobDone")
|
||||
|
||||
return
|
||||
@ -2189,7 +2189,7 @@ func jobShops(j Job) {
|
||||
|
||||
func jobShopsSlave(j Job) {
|
||||
|
||||
err = setJobDone(j.ID64)
|
||||
err := setJobDone(j.ID64)
|
||||
logOnError(err, "jobShopsSlave : setJobDone")
|
||||
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user