Skip to content

Commit

Permalink
[src] Fix the bug of check the thead pointer (nullpter) when destroyi…
Browse files Browse the repository at this point in the history
…ng EventManager instances
  • Loading branch information
Sigma711 committed Aug 28, 2023
1 parent 0ebfffa commit 10f206b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ EventManager::~EventManager() {
::close(wake_up_pipe_[1]);
delete wake_up_eventer_;
#endif
if (thread_->joinable()) {
if (thread_ && thread_->joinable()) {
thread_->join();
}
}
Expand Down

0 comments on commit 10f206b

Please sign in to comment.