Make it ok to call terminate_threads twice.
authorCarl Hetherington <cth@carlh.net>
Tue, 4 Jun 2013 10:45:45 +0000 (11:45 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 4 Jun 2013 10:45:45 +0000 (11:45 +0100)
src/lib/encoder.cc

index 8549962ff01807505683266e778d16c4c8eaef43..2c989452d012b7773cda11f97c91ee5341e3e0d4 100644 (file)
@@ -342,6 +342,8 @@ Encoder::terminate_threads ()
                }
                delete *i;
        }
+
+       _threads.clear ();
 }
 
 void