Cleanup backup handlers timers on the correct thread

This commit is contained in:
Atlante45 2018-02-21 14:52:02 -08:00
parent 6e6f52236e
commit 7582395686
2 changed files with 6 additions and 0 deletions

View file

@ -155,6 +155,11 @@ bool DomainContentBackupManager::process() {
return isStillRunning();
}
void DomainContentBackupManager::shutdown() {
// Destroy handlers on the correct thread so that they can cleanup timers
_backupHandlers.clear();
}
void DomainContentBackupManager::aboutToFinish() {
_stopThread = true;
}

View file

@ -75,6 +75,7 @@ protected:
/// Implements generic processing behavior for this thread.
virtual void setup() override;
virtual bool process() override;
virtual void shutdown() override;
void load();
void backup();