This commit is contained in:
Brian Swenson
2014-04-22 11:52:55 -04:00
parent aa5b099870
commit 6fc2de6382

View File

@@ -769,10 +769,8 @@ TcpSocketBase::CloseAndNotify (void)
{
NotifyNormalClose ();
}
if (m_state != TIME_WAIT)
{
DeallocateEndPoint ();
}
DeallocateEndPoint ();
m_closeNotified = true;
NS_LOG_INFO (TcpStateName[m_state] << " -> CLOSED");
CancelAllTimers ();