Shot-in-the-dark attempt to fix the tests
This commit is contained in:
parent
802bbe8cdc
commit
593e673734
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue