Fix deadlock in previous.
[dcpomatic.git] / 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 ();
        }