mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-06-03 23:03:55 +00:00
Fix callback deletion in UDP transport
This commit is contained in:
parent
54a0004de6
commit
245273e6c1
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ func (t *UDPTransport) exchange(ctx context.Context, message *mDNS.Msg) (*mDNS.M
|
|||
conn.access.Unlock()
|
||||
defer func() {
|
||||
conn.access.Lock()
|
||||
delete(conn.callbacks, messageId)
|
||||
delete(conn.callbacks, exMessage.Id)
|
||||
conn.access.Unlock()
|
||||
}()
|
||||
rawMessage, err := exMessage.PackBuffer(buffer.FreeBytes())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue