mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
delete local destination on session close
This commit is contained in:
parent
b007b66b15
commit
84e5f30c70
1 changed files with 3 additions and 1 deletions
4
SAM.cpp
4
SAM.cpp
|
@ -30,7 +30,6 @@ namespace client
|
||||||
|
|
||||||
void SAMSocket::CloseStream ()
|
void SAMSocket::CloseStream ()
|
||||||
{
|
{
|
||||||
m_SocketType = eSAMSocketTypeTerminated;
|
|
||||||
if (m_Stream)
|
if (m_Stream)
|
||||||
{
|
{
|
||||||
m_Stream->Close ();
|
m_Stream->Close ();
|
||||||
|
@ -584,7 +583,10 @@ namespace client
|
||||||
void SAMSession::CloseStreams ()
|
void SAMSession::CloseStreams ()
|
||||||
{
|
{
|
||||||
for (auto it: sockets)
|
for (auto it: sockets)
|
||||||
|
{
|
||||||
it->CloseStream ();
|
it->CloseStream ();
|
||||||
|
it->SetSocketType (eSAMSocketTypeTerminated);
|
||||||
|
}
|
||||||
sockets.clear ();
|
sockets.clear ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue