mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
close all existing streams when command SAM socket got closed
This commit is contained in:
parent
49b3ac7f77
commit
38a2d45a3c
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue