mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:09:52 +02:00
Cleanup backup handlers timers on the correct thread
This commit is contained in:
parent
6e6f52236e
commit
7582395686
2 changed files with 6 additions and 0 deletions
|
@ -155,6 +155,11 @@ bool DomainContentBackupManager::process() {
|
||||||
return isStillRunning();
|
return isStillRunning();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DomainContentBackupManager::shutdown() {
|
||||||
|
// Destroy handlers on the correct thread so that they can cleanup timers
|
||||||
|
_backupHandlers.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void DomainContentBackupManager::aboutToFinish() {
|
void DomainContentBackupManager::aboutToFinish() {
|
||||||
_stopThread = true;
|
_stopThread = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,7 @@ protected:
|
||||||
/// Implements generic processing behavior for this thread.
|
/// Implements generic processing behavior for this thread.
|
||||||
virtual void setup() override;
|
virtual void setup() override;
|
||||||
virtual bool process() override;
|
virtual bool process() override;
|
||||||
|
virtual void shutdown() override;
|
||||||
|
|
||||||
void load();
|
void load();
|
||||||
void backup();
|
void backup();
|
||||||
|
|
Loading…
Reference in a new issue