Correcting fs-watcher (executor now requires explicit start and shutdown)
diff --git a/fs-watcher/fs-watcher.cc b/fs-watcher/fs-watcher.cc
index cdbff3c..86c0f80 100644
--- a/fs-watcher/fs-watcher.cc
+++ b/fs-watcher/fs-watcher.cc
@@ -48,10 +48,12 @@
connect (m_watcher, SIGNAL (fileChanged (QString)), this, SLOT (DidFileChanged (QString)));
m_executor.execute (bind (&FsWatcher::ScanDirectory_Notify_Execute, this, m_dirPath));
+ m_executor.start ();
}
FsWatcher::~FsWatcher()
{
+ m_executor.shutdown ();
delete m_watcher;
}