mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-06-13 05:11:21 +00:00
Voice: Fixed a potential Write() stalling bug
This commit is contained in:
parent
c5f1bf4753
commit
9da01cccb3
|
@ -134,6 +134,9 @@ func (c *Connection) Start(secret *[32]byte) {
|
|||
select {
|
||||
case <-frequency.C:
|
||||
case <-c.close:
|
||||
// Prevent Write() from stalling before exiting.
|
||||
c.reply <- nil
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue