mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-05 18:57:41 +00:00
delete local destination on session close
This commit is contained in:
1 parent
b007b66b15
commit
84e5f30c70
1 file changed
+3
-1
@@ -30,7 +30,6 @@ namespace client
|
||||
|
||||
void SAMSocket::CloseStream ()
|
||||
{
|
||||
m_SocketType = eSAMSocketTypeTerminated;
|
||||
if (m_Stream)
|
||||
{
|
||||
m_Stream->Close ();
|
||||
@@ -584,7 +583,10 @@ namespace client
|
||||
void SAMSession::CloseStreams ()
|
||||
{
|
||||
for (auto it: sockets)
|
||||
{
|
||||
it->CloseStream ();
|
||||
it->SetSocketType (eSAMSocketTypeTerminated);
|
||||
}
|
||||
sockets.clear ();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user