summaryrefslogtreecommitdiff
path: root/zen/dir_watcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zen/dir_watcher.cpp')
-rw-r--r--zen/dir_watcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/dir_watcher.cpp b/zen/dir_watcher.cpp
index 0c55a963..769aa4f2 100644
--- a/zen/dir_watcher.cpp
+++ b/zen/dir_watcher.cpp
@@ -344,9 +344,9 @@ DirWatcher::~DirWatcher()
if (pimpl_->worker.joinable()) //= thread::detach() precondition! -> may already be joined by HandleVolumeRemoval::onRequestRemoval()
{
pimpl_->worker.interrupt();
- pimpl_->worker.detach(); //we don't have time to wait... will take ~50ms anyway:
+ pimpl_->worker.detach(); //we don't have time to wait... would take ~50ms
+ //Windows caveat: exitting the app will kill the thread and leak memory!
}
- //caveat: exitting the app may simply kill this thread!
}
bgstack15