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:
parent
a900d1521e
commit
85a0fb7b79
3 changed files with 12 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue