|
|
@ -207,6 +207,7 @@ namespace stream |
|
|
|
m_IsOpen = false; |
|
|
|
m_IsOpen = false; |
|
|
|
m_IsReset = true; |
|
|
|
m_IsReset = true; |
|
|
|
m_ReceiveTimer.cancel (); |
|
|
|
m_ReceiveTimer.cancel (); |
|
|
|
|
|
|
|
m_LocalDestination.DeleteStream (shared_from_this ()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -549,9 +550,11 @@ namespace stream |
|
|
|
packets.push_back (it); |
|
|
|
packets.push_back (it); |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
Close (); |
|
|
|
LogPrint (eLogWarning, "Packet ", it->GetSeqn (), "was not ACKed after ", MAX_NUM_RESEND_ATTEMPTS, " attempts. Terminate"); |
|
|
|
|
|
|
|
m_IsOpen = false; |
|
|
|
m_IsReset = true; |
|
|
|
m_IsReset = true; |
|
|
|
m_ReceiveTimer.cancel (); |
|
|
|
m_ReceiveTimer.cancel (); |
|
|
|
|
|
|
|
m_LocalDestination.DeleteStream (shared_from_this ()); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -715,11 +718,5 @@ namespace stream |
|
|
|
delete uncompressed; |
|
|
|
delete uncompressed; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void DeleteStream (std::shared_ptr<Stream> stream) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (stream) |
|
|
|
|
|
|
|
stream->GetLocalDestination ().DeleteStream (stream); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|