Shot-in-the-dark attempt to fix the tests

This commit is contained in:
Charles Dang 2018-04-13 23:28:44 +11:00
parent 6b30c18d54
commit f6933b98f8

View file

@ -84,8 +84,10 @@ wesnothd_connection::~wesnothd_connection()
MPTEST_LOG;
// Stop the io_service and wait for the worker thread to terminate.
stop();
worker_thread_->join();
if(worker_thread_) {
stop();
worker_thread_->join();
}
}
// main thread