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:
parent
a14038b215
commit
e11c6e6479
1 changed files with 4 additions and 2 deletions
|
@ -161,8 +161,10 @@ func deadChannelReaper() {
|
||||||
time.Sleep(ReapingDelay)
|
time.Sleep(ReapingDelay)
|
||||||
ChatSubscriptionLock.Lock()
|
ChatSubscriptionLock.Lock()
|
||||||
for key, val := range ChatSubscriptionInfo {
|
for key, val := range ChatSubscriptionInfo {
|
||||||
if len(val.Members) == 0 {
|
if val != nil {
|
||||||
ChatSubscriptionInfo[key] = nil
|
if len(val.Members) == 0 {
|
||||||
|
ChatSubscriptionInfo[key] = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ChatSubscriptionLock.Unlock()
|
ChatSubscriptionLock.Unlock()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue