mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Fix compile
This commit is contained in:
parent
7b0cdc4baa
commit
206e36a521
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue