View | Details | Raw Unified | Return to bug 1791
Collapse All | Expand All

(-)src/internet/model/tcp-socket-base.cc (-5 / +3 lines)
 Lines 806-811    Link Here 
806
void
806
void
807
TcpSocketBase::CloseAndNotify (void)
807
TcpSocketBase::CloseAndNotify (void)
808
{
808
{
809
  Ptr<TcpSocketBase> l_ptr = (m_state == TIME_WAIT ? this : 0);
810
809
  NS_LOG_FUNCTION (this);
811
  NS_LOG_FUNCTION (this);
810
812
811
  if (!m_closeNotified)
813
  if (!m_closeNotified)
 Lines 813-823    Link Here 
813
      NotifyNormalClose ();
815
      NotifyNormalClose ();
814
    }
816
    }
815
817
816
  if (m_state != TIME_WAIT)
818
  DeallocateEndPoint ();  
817
    {
818
      DeallocateEndPoint ();
819
    }
820
    
821
  m_closeNotified = true;
819
  m_closeNotified = true;
822
  NS_LOG_INFO (TcpStateName[m_state] << " -> CLOSED");
820
  NS_LOG_INFO (TcpStateName[m_state] << " -> CLOSED");
823
  CancelAllTimers ();
821
  CancelAllTimers ();

Return to bug 1791