|
|
@ -700,13 +700,20 @@ namespace client |
|
|
|
{ |
|
|
|
{ |
|
|
|
m_ReadyChecker.cancel(); |
|
|
|
m_ReadyChecker.cancel(); |
|
|
|
m_StreamingDestination->Stop (); |
|
|
|
m_StreamingDestination->Stop (); |
|
|
|
|
|
|
|
m_StreamingDestination->SetOwner (nullptr); |
|
|
|
m_StreamingDestination = nullptr; |
|
|
|
m_StreamingDestination = nullptr; |
|
|
|
for (auto& it: m_StreamingDestinationsByPorts) |
|
|
|
for (auto& it: m_StreamingDestinationsByPorts) |
|
|
|
|
|
|
|
{ |
|
|
|
it.second->Stop (); |
|
|
|
it.second->Stop (); |
|
|
|
if(m_DatagramDestination) |
|
|
|
it.second->SetOwner (nullptr); |
|
|
|
delete m_DatagramDestination; |
|
|
|
} |
|
|
|
m_DatagramDestination = nullptr; |
|
|
|
m_StreamingDestinationsByPorts.clear (); |
|
|
|
return true; |
|
|
|
if (m_DatagramDestination) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
delete m_DatagramDestination; |
|
|
|
|
|
|
|
m_DatagramDestination = nullptr; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
return false; |
|
|
|
return false; |
|
|
|