tcpip/udp: defer mutex unlock

This commit is contained in:
ignoramous
2024-10-05 00:14:04 +05:30
committed by GitHub
parent 741bf52370
commit ab3c4c85a3
+1 -1
View File
@@ -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.