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