Disable placefile refresh on destruction

This commit is contained in:
Dan Paulat 2025-01-06 12:42:18 -06:00 committed by GitHub
parent 70c858d847
commit b1b06bc125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,6 +93,7 @@ public:
{ {
std::unique_lock refreshLock(refreshMutex_); std::unique_lock refreshLock(refreshMutex_);
std::unique_lock timerLock(timerMutex_); std::unique_lock timerLock(timerMutex_);
enabled_ = false;
refreshTimer_.cancel(); refreshTimer_.cancel();
timerLock.unlock(); timerLock.unlock();
refreshLock.unlock(); refreshLock.unlock();