Merge pull request #12459 from Atlante45/feat/backups-integration

Cleanup timers on the correct thread
This commit is contained in:
Stephen Birarda 2018-02-21 18:55:39 -07:00 committed by GitHub
commit e967ed0e22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();