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:
Jason Rhinelander 2022-09-14 17:40:11 -03:00
parent 0fb639db53
commit 517911b499
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 0 additions and 12 deletions

View File

@ -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();
}