Browse Source

complete session if presented

pull/158/head
orignal 10 years ago
parent
commit
0ed9dc4e93
  1. 1
      Transports.cpp
  2. 1
      Transports.h

1
Transports.cpp

@ -291,6 +291,7 @@ namespace transport
} }
} }
LogPrint (eLogError, "No NTCP and SSU addresses available"); LogPrint (eLogError, "No NTCP and SSU addresses available");
if (peer.session) peer.session->Done ();
m_Peers.erase (ident); m_Peers.erase (ident);
return false; return false;
} }

1
Transports.h

@ -60,7 +60,6 @@ namespace transport
~Peer () ~Peer ()
{ {
//if (session) session->Done ();
for (auto it :delayedMessages) for (auto it :delayedMessages)
i2p::DeleteI2NPMessage (it); i2p::DeleteI2NPMessage (it);
} }

Loading…
Cancel
Save