1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +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 ClientInfo
func UnsubscribeAll(client *ClientInfo) {
if StopAcceptingConnections {
return // no need to remove from a high-contention list when the server is closing
select {
case <-StopAcceptingConnectionsCh:
// Skip high-contention client removal operations while server shutting down
return
default:
}
GlobalSubscriptionLock.Lock()