change thread join strategy, fix a few leaks, fix a few bugs
[goodguy/history.git] / cinelerra-5.1 / cinelerra / filethread.C
index c5b28785c03cd7f491adb61c1f5fb59d56a58b52..f8744545493919c33a26af82ecf0a34a130cfbf3 100644 (file)
@@ -501,8 +501,8 @@ int FileThread::stop_reading()
        {
                done = 1;
                read_wait_lock->unlock();
-               Thread::join();
        }
+       Thread::join();
        return 0;
 }