mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
terminate acceptor and sessions on stop
This commit is contained in:
parent
84235fe479
commit
a44ca91409
3 changed files with 30 additions and 14 deletions
11
SAM.h
11
SAM.h
|
@ -131,12 +131,11 @@ namespace client
|
|||
{
|
||||
ClientDestination * localDestination;
|
||||
std::list<std::shared_ptr<SAMSocket> > sockets;
|
||||
|
||||
~SAMSession ()
|
||||
{
|
||||
for (auto it: sockets)
|
||||
it->SetSocketType (eSAMSocketTypeTerminated);
|
||||
}
|
||||
|
||||
SAMSession (ClientDestination * localDestination);
|
||||
~SAMSession ();
|
||||
|
||||
void CloseStreams ();
|
||||
};
|
||||
|
||||
class SAMBridge
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue