| 52 | |
| 53 | |
| 54 | void destroy() { |
| 55 | // Wait until all library threads are finished |
| 56 | updateCv.notify_all(); |
| 57 | std::lock_guard<std::mutex> timeoutLock(timeoutMutex); |
| 58 | std::lock_guard<std::mutex> appUpdateLock(appUpdateMutex); |
| 59 | std::lock_guard<std::mutex> updateLock(updateMutex); |
| 60 | |
| 61 | // Clear globals in case init() is called again |
| 62 | loginStatus = ""; |
| 63 | updateInfos.clear(); |
| 64 | } |
| 65 | |
| 66 | |
| 67 | void checkAppUpdate() { |