Possible fix to problems when the Server is destroyed.
authorCarl Hetherington <cth@carlh.net>
Wed, 16 Sep 2015 10:27:59 +0000 (11:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 16 Sep 2015 10:27:59 +0000 (11:27 +0100)
src/lib/server.cc

index f9f91417848bd010112ffb4d1abee49089a63ec5..c1db1e6ac866d632c62aead5cd71986875a13151 100644 (file)
@@ -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) {