1
1
Fork 0
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:
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

View file

@ -373,18 +373,6 @@ namespace llarp::dns
runner.join(); runner.join();
#else #else
m_Poller->close(); 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 #endif
m_ctx.reset(); m_ctx.reset();
} }