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
void SAMSingleSession::StopLocalDestination () void SAMSingleSession::StopLocalDestination ()
{ {
localDestination->Release (); localDestination->Release ();
// stop accepting new streams
localDestination->StopAcceptingStreams (); localDestination->StopAcceptingStreams ();
// terminate existing streams
auto s = localDestination->GetStreamingDestination (); // TODO: take care about datagrams
if (s) s->Stop ();
} }
void SAMMasterSession::Close () void SAMMasterSession::Close ()

Loading…
Cancel
Save