Skip to content

Commit

Permalink
Fixed the issue of crashes caused by the destruction of the EventPoll…
Browse files Browse the repository at this point in the history
…er during process exit (#211)
  • Loading branch information
lvchenyun authored Feb 19, 2024
1 parent fca6d23 commit 69d82e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Poller/EventPoller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void EventPoller::shutdown() {

if (_loop_thread) {
//防止作为子进程时崩溃
try { _loop_thread->join(); } catch (...) {}
try { _loop_thread->join(); } catch (...) { _loop_thread->detach(); }
delete _loop_thread;
_loop_thread = nullptr;
}
Expand Down

0 comments on commit 69d82e6

Please sign in to comment.