Skip to content

Commit

Permalink
try to fix the freezing heisenbug
Browse files Browse the repository at this point in the history
svn path=/trunk/playground/utils/filelight/; revision=955422
  • Loading branch information
sandsmark committed Apr 17, 2009
1 parent 3278d97 commit 6c4a6f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/part/scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ ScanManager::cacheTree(Directory *tree, bool finished)
if (m_thread) {
m_thread->terminate();
kDebug() << "Waiting for thread to terminate ...";
m_thread->wait();
if (m_thread->isRunning())
m_thread->wait();
delete m_thread; //note the lister deletes itself
m_thread = 0;
}
Expand Down

0 comments on commit 6c4a6f7

Please sign in to comment.