mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove unnecessary cleanupLocked
handshakeFailed already calls cleanupLocked at the end, there's no need to cleanup twice the same endpoint. PiperOrigin-RevId: 446043917
This commit is contained in:
@@ -2488,7 +2488,6 @@ func (e *endpoint) Shutdown(flags tcpip.ShutdownFlags) tcpip.Error {
|
||||
// method because that method is called during a close(2) (and closing a
|
||||
// connecting socket is not an error).
|
||||
e.handshakeFailed(&tcpip.ErrConnectionReset{})
|
||||
e.cleanupLocked()
|
||||
e.waiterQueue.Notify(waiter.WritableEvents | waiter.EventHUp | waiter.EventErr)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user