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 802bbe8cdc
commit 593e673734

View file

@ -83,8 +83,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