This commit is contained in:
shoopea 2019-12-15 15:42:10 +08:00
parent bea1f95b85
commit aef2e3973e

View File

@ -38,7 +38,7 @@ func setClientIdle(userID64 int64, from time.Time) error {
func getLockedIdleClient() (*ChirpClient, error) {
muxClients.RLock()
ids := make([]int64, 0)
for id, c := range clients {
for _, c := range clients {
if c.CWIdle {
ids = append(ids, c.TGUserID64)
}