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