Browse Source

remove not needed initialization for pointer

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1515/head
R4SAS 5 years ago
parent
commit
f5712c4198
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 4
      libi2pd/NTCP2.cpp

4
libi2pd/NTCP2.cpp

@ -1148,7 +1148,7 @@ namespace transport
NTCP2Server::NTCP2Server (): NTCP2Server::NTCP2Server ():
RunnableServiceWithWork ("NTCP2"), m_TerminationTimer (GetService ()), RunnableServiceWithWork ("NTCP2"), m_TerminationTimer (GetService ()),
m_Resolver(GetService ()), m_ProxyType(eNoProxy), m_ProxyEndpoint(nullptr) m_Resolver(GetService ()), m_ProxyType(eNoProxy)
{ {
} }
@ -1412,7 +1412,7 @@ namespace transport
if ((*it)->IsEstablished () || (*it)->IsTerminationTimeoutExpired (ts)) if ((*it)->IsEstablished () || (*it)->IsTerminationTimeoutExpired (ts))
{ {
(*it)->Terminate (); (*it)->Terminate ();
it = m_PendingIncomingSessions.erase (it); // etsablished of expired it = m_PendingIncomingSessions.erase (it); // established of expired
} }
else if ((*it)->IsTerminated ()) else if ((*it)->IsTerminated ())
it = m_PendingIncomingSessions.erase (it); // already terminated it = m_PendingIncomingSessions.erase (it); // already terminated

Loading…
Cancel
Save