mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
close all existing streams when command SAM socket got closed
This commit is contained in:
parent
49b3ac7f77
commit
38a2d45a3c
@ -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…
Reference in New Issue
Block a user