fix a udp bug

fix udp bug error: use of closed network connection
This commit is contained in:
misakydrip
2026-04-12 22:18:53 +08:00
committed by ginuerzh
parent 2a2643a6b7
commit 6c32dda058
+1
View File
@@ -229,6 +229,7 @@ func (c *conn) SetIdle(idle bool) {
func (c *conn) WriteQueue(b []byte) error {
select {
case c.rc <- b:
c.SetIdle(false)
return nil
case <-c.closed: