clean shutdown

pull/184/head
Jeff Becker 6 years ago
parent 414c7d659c
commit 5972f5ab14
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -195,7 +195,7 @@ namespace llarp
while(itr != m_AuthedLinks.end())
{
itr->second->SendClose();
itr = m_AuthedLinks.erase(itr);
++itr;
}
}
{
@ -204,7 +204,7 @@ namespace llarp
while(itr != m_Pending.end())
{
(*itr)->SendClose();
itr = m_Pending.erase(itr);
++itr;
}
}
}

@ -454,8 +454,7 @@ namespace llarp
void
Router::Close()
{
if(logic)
logic->stop();
llarp::LogInfo("closing router");
llarp_ev_loop_stop(netloop);
inboundLinks.clear();
outboundLink.reset(nullptr);

Loading…
Cancel
Save