fix var in cronSendReport
This commit is contained in:
parent
a983da04a2
commit
e09ac8e515
2
cron.go
2
cron.go
@ -21,7 +21,7 @@ func stopCron(c *cron.Cron) {
|
|||||||
|
|
||||||
func cronSendReport() {
|
func cronSendReport() {
|
||||||
muxClients.RLock()
|
muxClients.RLock()
|
||||||
for id, c := range clients {
|
for _, c := range clients {
|
||||||
if c.Active {
|
if c.Active {
|
||||||
clientSendCWMsg(c.TGUserID64, `/report`)
|
clientSendCWMsg(c.TGUserID64, `/report`)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user