summaryrefslogtreecommitdiff
path: root/src/lib/server.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-16 11:27:59 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-16 11:27:59 +0100
commitde46308eee17621e15e0cffbacc5a186e4ab3f95 (patch)
tree35b05a7de82b46e1dbcfb107ef4f73ab0f83631e /src/lib/server.cc
parentb85420b326b74c7c8125bf599993d71460ad881e (diff)
Possible fix to problems when the Server is destroyed.
Diffstat (limited to 'src/lib/server.cc')
-rw-r--r--src/lib/server.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index f9f914178..c1db1e6ac 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -78,6 +78,7 @@ Server::~Server ()
boost::mutex::scoped_lock lm (_worker_mutex);
_terminate = true;
_empty_condition.notify_all ();
+ _full_condition.notify_all ();
}
for (vector<boost::thread*>::iterator i = _worker_threads.begin(); i != _worker_threads.end(); ++i) {