summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-06-01 11:33:56 +0200
committerArno <am@disconnect.de>2013-06-01 11:33:56 +0200
commit7e3d21cb6a9e8142b7132fe8fdae7a844b505006 (patch)
tree7e6d0329a7c35ffa0b4f43893c163463cb5f65e0 /smdirwatcher.cpp
parent376d2fbb78114e746618f14afe7728cf9793630b (diff)
downloadSheMov-7e3d21cb6a9e8142b7132fe8fdae7a844b505006.tar.gz
SheMov-7e3d21cb6a9e8142b7132fe8fdae7a844b505006.tar.bz2
SheMov-7e3d21cb6a9e8142b7132fe8fdae7a844b505006.zip
Don't clean up after ourselves
Don't delete threads and stuff in destructors. It leads to SIGARBRT when debugging. Now we get a warning on close, but who cares?
Diffstat (limited to 'smdirwatcher.cpp')
-rw-r--r--smdirwatcher.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp
index 09aead4..9883a85 100644
--- a/smdirwatcher.cpp
+++ b/smdirwatcher.cpp
@@ -37,15 +37,6 @@ SmDirWatcher::SmDirWatcher(int numFields, QObject *parent) : QThread(parent), mF
mCollector->start();
}
-SmDirWatcher::~SmDirWatcher(){
- mCollector->terminate();
- mCollector->wait();
- if(mFd && mDescr){
- inotify_rm_watch(mFd, mDescr);
- }
- delete mINdata;
-}
-
void SmDirWatcher::setDir(const QString &dir){
if(mDescr){
inotify_rm_watch(mFd, mDescr); //generates IN_IGNORE ???