We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d989a0 commit a997383Copy full SHA for a997383
Source/Utility/FileSystemWatcher.cxx
@@ -388,17 +388,6 @@ FileSystemWatcher::FileSystemWatcher()
388
389
FileSystemWatcher::~FileSystemWatcher()
390
{
391
- for(auto* impl : watched) {
392
- auto* thread = dynamic_cast<Thread*>(impl);
393
- // Force thread termination instead of waiting indefinitely
394
- if (thread && thread->isThreadRunning()) {
395
- thread->signalThreadShouldExit();
396
- if (!thread->waitForThreadToExit(1000)) { // 1 second timeout
397
- // Force kill if it doesn't exit gracefully
398
- thread->killThread();
399
- }
400
401
402
}
403
404
void FileSystemWatcher::addFolder (const File& folder)
0 commit comments