close all existing streams when command SAM socket got closed

This commit is contained in:
orignal 2021-08-11 12:31:46 -04:00
parent 49b3ac7f77
commit 38a2d45a3c

View File

@ -1207,7 +1207,11 @@ namespace client
void SAMSingleSession::StopLocalDestination ()
{
localDestination->Release ();
// stop accepting new streams
localDestination->StopAcceptingStreams ();
// terminate existing streams
auto s = localDestination->GetStreamingDestination (); // TODO: take care about datagrams
if (s) s->Stop ();
}
void SAMMasterSession::Close ()