1
0
Fork 0
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:
diamondburned (Forefront) 2020-05-20 15:05:39 -07:00
parent c5f1bf4753
commit 9da01cccb3

View file

@ -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
}