fix clients rules

This commit is contained in:
shoopea 2020-02-10 10:44:23 +08:00
parent c3853fe527
commit 8c67f19066

View File

@ -36,9 +36,11 @@ func resetMsgParsingRules() error {
users = append(users, 0) users = append(users, 0)
muxClients.RLock() muxClients.RLock()
for id, _ := range clients { for id, c := range clients {
chats = append(chats, id) if c.Active {
users = append(users, id) chats = append(chats, id)
users = append(users, id)
}
} }
muxClients.RUnlock() muxClients.RUnlock()