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)
|
||||
ChatSubscriptionLock.Lock()
|
||||
for key, val := range ChatSubscriptionInfo {
|
||||
if len(val.Members) == 0 {
|
||||
ChatSubscriptionInfo[key] = nil
|
||||
if val != nil {
|
||||
if len(val.Members) == 0 {
|
||||
ChatSubscriptionInfo[key] = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
ChatSubscriptionLock.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue