We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6e14e9 commit a33a7a4Copy full SHA for a33a7a4
src/countly.cpp
@@ -45,7 +45,11 @@ Countly &Countly::getInstance() {
45
}
46
47
#ifdef COUNTLY_BUILD_TESTS
48
-void Countly::halt() { _sharedInstance.reset(new Countly()); }
+void Countly::halt() {
49
+ if (_sharedInstance) {
50
+ _sharedInstance->stop(); // joins threads, releases mutex normally
51
+ }
52
+ _sharedInstance.reset(new Countly()); }
53
#endif
54
55
/**
0 commit comments