1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 08:28:31 +00:00

Make client.messageChannel unexported

This commit is contained in:
Kane York 2017-10-27 13:14:29 -07:00
parent a900d1521e
commit 85a0fb7b79
3 changed files with 12 additions and 10 deletions

View file

@ -18,9 +18,11 @@ var ChatSubscriptionLock sync.RWMutex
var GlobalSubscriptionInfo []*ClientInfo
var GlobalSubscriptionLock sync.RWMutex
// Send a message to the client.
// Drops if buffer is full.
func (client *ClientInfo) Send(msg ClientMessage) bool {
select {
case client.MessageChannel <- msg:
case client.messageChannel <- msg:
return true
case <-client.MsgChannelIsDone:
return false