mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 05:15:54 +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 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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue