Browse Source

close all existing streams when command SAM socket got closed

pull/1687/head
orignal 3 years ago
parent
commit
38a2d45a3c
  1. 4
      libi2pd_client/SAM.cpp

4
libi2pd_client/SAM.cpp

@ -1207,7 +1207,11 @@ namespace client @@ -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 ()

Loading…
Cancel
Save