mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +02:00
Merge pull request #12459 from Atlante45/feat/backups-integration
Cleanup timers on the correct thread
This commit is contained in:
commit
e967ed0e22
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue