Browse Source

delete non-responding streams

pull/113/head
orignal 10 years ago
parent
commit
cfcec8229c
  1. 5
      Streaming.cpp

5
Streaming.cpp

@ -206,8 +206,6 @@ namespace stream @@ -206,8 +206,6 @@ namespace stream
Close ();
m_IsOpen = false;
m_IsReset = true;
m_ReceiveTimer.cancel ();
m_LocalDestination.DeleteStream (shared_from_this ());
}
}
@ -418,6 +416,8 @@ namespace stream @@ -418,6 +416,8 @@ namespace stream
p->len = size;
m_Service.post (std::bind (&Stream::SendPacket, shared_from_this (), p));
LogPrint ("FIN sent");
m_ReceiveTimer.cancel ();
m_LocalDestination.DeleteStream (shared_from_this ());
}
}
@ -554,7 +554,6 @@ namespace stream @@ -554,7 +554,6 @@ namespace stream
m_IsOpen = false;
m_IsReset = true;
m_ReceiveTimer.cancel ();
m_LocalDestination.DeleteStream (shared_from_this ());
return;
}
}

Loading…
Cancel
Save