dfaure added a comment.
I know what the problem is with this. Previously, if nobody was watching the directory, stopDirScan/restartDirScan would basically do nothing. Now, after running a kio job in that directory, KDirWatch will start watching it, for no purpose, due to the unconditional addDir(). I guess this needs checks with KDirWatch::contains() before removeDir to only call addDir on dirs that were actually watched in the first place... REPOSITORY R241 KIO BRANCH master REVISION DETAIL https://phabricator.kde.org/D5856 To: dfaure, aacid Cc: #frameworks