mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Fix crash on shutdown
For some (wrong) reason this chunk of code was here. Removed it to stop a crash on shutdown.
This commit is contained in:
parent
0fb639db53
commit
517911b499
1 changed files with 0 additions and 12 deletions
|
@ -373,18 +373,6 @@ namespace llarp::dns
|
|||
runner.join();
|
||||
#else
|
||||
m_Poller->close();
|
||||
if (auto loop = m_Loop.lock())
|
||||
{
|
||||
if (auto loop_ptr = loop->MaybeGetUVWLoop())
|
||||
{
|
||||
m_Poller = loop_ptr->resource<uvw::PollHandle>(ub_fd(m_ctx.get()));
|
||||
m_Poller->on<uvw::PollEvent>([ptr = std::weak_ptr{m_ctx}](auto&, auto&) {
|
||||
if (auto ctx = ptr.lock())
|
||||
ub_process(ctx.get());
|
||||
});
|
||||
m_Poller->start(uvw::PollHandle::Event::READABLE);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
m_ctx.reset();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue