Fix UDP DNS server crash

Signed-off-by: iikira <i2@mail.iikira.com>
This commit is contained in:
iikira authored and 世界 committed 2025-07-08 13:12:31 +08:00
1 parent a5e47f4e0f
commit 40a6260f6e
1 file changed
+1 -1
+1 -1
View File
@@ -212,8 +212,8 @@ type dnsConnection struct {
func (c *dnsConnection) Close(err error) {
c.closeOnce.Do(func() {
close(c.done)
c.err = err
close(c.done)
})
c.Conn.Close()
}