mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
close dropped session later in event loop
This commit is contained in:
parent
4cfc3481dc
commit
a9f524383a
@ -331,7 +331,10 @@ namespace llarp
|
||||
if(!self->PutSession(session))
|
||||
{
|
||||
LogWarn("dropping inbound utp session from ", remote);
|
||||
utp_close(arg->socket);
|
||||
// close later
|
||||
self->m_Logic->call_later(50, [=]() {
|
||||
session->Close();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user