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

Fix compile

This commit is contained in:
Kane York 2017-09-26 13:04:54 -07:00
parent 7b0cdc4baa
commit 206e36a521

View file

@ -156,8 +156,11 @@ func UnsubscribeSingleChat(client *ClientInfo, channelName string) {
// - write lock to SubscriptionInfos // - write lock to SubscriptionInfos
// - write lock to ClientInfo // - write lock to ClientInfo
func UnsubscribeAll(client *ClientInfo) { func UnsubscribeAll(client *ClientInfo) {
if StopAcceptingConnections { select {
return // no need to remove from a high-contention list when the server is closing case <-StopAcceptingConnectionsCh:
// Skip high-contention client removal operations while server shutting down
return
default:
} }
GlobalSubscriptionLock.Lock() GlobalSubscriptionLock.Lock()