mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
tcpip/udp: defer mutex unlock
This commit is contained in:
@@ -160,8 +160,8 @@ func (e *endpoint) Abort() {
|
||||
// associated with it.
|
||||
func (e *endpoint) Close() {
|
||||
e.mu.Lock()
|
||||
defer e.mu.Unlock()
|
||||
e.closeLocked()
|
||||
e.mu.Unlock()
|
||||
}
|
||||
|
||||
// Preconditions: e.mu is locked.
|
||||
|
||||
Reference in New Issue
Block a user