Browse Source

Clear library global state in library::destroy() in case init() is called again.

tags/v2.6.2
Andrew Belt 1 month ago
parent
commit
4d8030a535
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/library.cpp

+ 4
- 0
src/library.cpp View File

@@ -57,6 +57,10 @@ void destroy() {
std::lock_guard<std::mutex> timeoutLock(timeoutMutex);
std::lock_guard<std::mutex> appUpdateLock(appUpdateMutex);
std::lock_guard<std::mutex> updateLock(updateMutex);

// Clear globals in case init() is called again
loginStatus = "";
updateInfos.clear();
}




Loading…
Cancel
Save