Skip to content

Commit a997383

Browse files
committed
Revert change
1 parent 0d989a0 commit a997383

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Source/Utility/FileSystemWatcher.cxx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -388,17 +388,6 @@ FileSystemWatcher::FileSystemWatcher()
388388

389389
FileSystemWatcher::~FileSystemWatcher()
390390
{
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-
}
402391
}
403392

404393
void FileSystemWatcher::addFolder (const File& folder)

0 commit comments

Comments
 (0)