Fix UDP DNS server crash
Signed-off-by: iikira <i2@mail.iikira.com>
This commit is contained in:
parent
2e2455edf0
commit
24e8a19b62
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue