Browse Source

Shutdown fix

Adam Ierymenko 6 years ago
parent
commit
f8f2432ece
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controller/DBMirrorSet.cpp

+ 2 - 0
controller/DBMirrorSet.cpp

@@ -79,6 +79,8 @@ DBMirrorSet::DBMirrorSet(DB::ChangeListener *listener) :
 
 
 DBMirrorSet::~DBMirrorSet()
 DBMirrorSet::~DBMirrorSet()
 {
 {
+	_running = false;
+	_syncCheckerThread.join();
 }
 }
 
 
 bool DBMirrorSet::hasNetwork(const uint64_t networkId) const
 bool DBMirrorSet::hasNetwork(const uint64_t networkId) const