mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
generally prevent threads to start twice, and fixed bug causing DirWatcher to be run twice
This commit is contained in:
parent
eb95c6895a
commit
461975f115
2 changed files with 8 additions and 3 deletions
|
@ -54,10 +54,10 @@ void LocalDirectoryUpdater::setEnabled(bool b)
|
|||
if(mIsEnabled == b)
|
||||
return ;
|
||||
|
||||
if(b)
|
||||
start("fs dir updater") ;
|
||||
else
|
||||
if(!b)
|
||||
shutdown();
|
||||
else if(!isRunning())
|
||||
start("fs dir updater") ;
|
||||
|
||||
mIsEnabled = b ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue