summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--controller/DBMirrorSet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/controller/DBMirrorSet.cpp b/controller/DBMirrorSet.cpp
index 852e70f3..c1be6b9c 100644
--- a/controller/DBMirrorSet.cpp
+++ b/controller/DBMirrorSet.cpp
@@ -79,6 +79,8 @@ DBMirrorSet::DBMirrorSet(DB::ChangeListener *listener) :
DBMirrorSet::~DBMirrorSet()
{
+ _running = false;
+ _syncCheckerThread.join();
}
bool DBMirrorSet::hasNetwork(const uint64_t networkId) const