fix
This commit is contained in:
parent
bea1f95b85
commit
aef2e3973e
@ -38,7 +38,7 @@ func setClientIdle(userID64 int64, from time.Time) error {
|
|||||||
func getLockedIdleClient() (*ChirpClient, error) {
|
func getLockedIdleClient() (*ChirpClient, error) {
|
||||||
muxClients.RLock()
|
muxClients.RLock()
|
||||||
ids := make([]int64, 0)
|
ids := make([]int64, 0)
|
||||||
for id, c := range clients {
|
for _, c := range clients {
|
||||||
if c.CWIdle {
|
if c.CWIdle {
|
||||||
ids = append(ids, c.TGUserID64)
|
ids = append(ids, c.TGUserID64)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user