1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 05:15:54 +00:00

val can be nil

This commit is contained in:
Kane York 2015-10-29 15:01:42 -07:00
parent a14038b215
commit e11c6e6479

View file

@ -161,10 +161,12 @@ func deadChannelReaper() {
time.Sleep(ReapingDelay)
ChatSubscriptionLock.Lock()
for key, val := range ChatSubscriptionInfo {
if val != nil {
if len(val.Members) == 0 {
ChatSubscriptionInfo[key] = nil
}
}
}
ChatSubscriptionLock.Unlock()
}
}