nghttpx: Fix crash on SIGHUP with multi thread configuration

This commit is contained in:
Tatsuhiro Tsujikawa 2017-02-08 22:14:23 +09:00
parent 5f31c09410
commit 4a06f9684f
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ void ConnectionHandler::graceful_shutdown_worker() {
(void)reopen_log_files();
join_worker();
ev_async_send(get_loop(), &thread_join_asyncev_);
delete log_config();
delete_log_config();
});
#endif // NOTHREADS
}

View File

@ -313,7 +313,7 @@ void Worker::run_async() {
fut_ = std::async(std::launch::async, [this] {
(void)reopen_log_files();
ev_run(loop_);
delete log_config();
delete_log_config();
});
#endif // !NOTHREADS
}