mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
add defer to unlock
This commit is contained in:
parent
6f56e62be4
commit
0085d6a7ea
1 changed files with 1 additions and 1 deletions
|
@ -221,8 +221,8 @@ func getConnection(pkt packet.Packet) (*network.Connection, error) {
|
|||
// Else create new one from the packet.
|
||||
conn = network.NewConnectionFromFirstPacket(pkt)
|
||||
conn.Lock()
|
||||
defer conn.Unlock()
|
||||
conn.SetFirewallHandler(initialHandler)
|
||||
conn.Unlock()
|
||||
created = true
|
||||
return conn, nil
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue