Fix deadlock in previous.
authorCarl Hetherington <cth@carlh.net>
Sun, 6 Dec 2015 22:20:37 +0000 (22:20 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 11:56:23 +0000 (11:56 +0000)
src/lib/encode_server.cc

index 6560bcfec9ebf52b7dbeb5d0dc4d66ec25dcde05..934c53423bb9cf85f51c0c379af5a7148afeba27 100644 (file)
@@ -78,6 +78,7 @@ EncodeServer::~EncodeServer ()
 {
        {
                boost::mutex::scoped_lock lm (_mutex);
+               _terminate = true;
                _empty_condition.notify_all ();
                _full_condition.notify_all ();
        }