summaryrefslogtreecommitdiff
path: root/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'update.c')
-rw-r--r--update.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/update.c b/update.c
index 09b27b1..9fdc358 100644
--- a/update.c
+++ b/update.c
@@ -77,7 +77,6 @@ cUpdate::cUpdate(cScrapManager *manager) : cThread("update thread started", true
cUpdate::~cUpdate() {
if (loopActive)
Stop();
- exitDb();
}
// global field definitions
@@ -1356,6 +1355,8 @@ void cUpdate::Action()
worked = no;
}
+
+ exitDb(); // don't call exit in dtor, outside from thread!!
loopActive = no;
tell(0, "Update thread ended (pid=%d)", getpid());
}