mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
FIX: backup switch take effect
Change-Id: Ie9740d7f985ae6adc2778eaac0a80cf7a94c98c4
This commit is contained in:
@@ -7397,7 +7397,10 @@ public:
|
||||
while (true)
|
||||
{
|
||||
while (m_tasks.empty()) {
|
||||
m_cond.timed_wait(lock, m_next_backup);
|
||||
if (m_interval > 0)
|
||||
m_cond.timed_wait(lock, m_next_backup);
|
||||
else
|
||||
m_cond.wait(lock);
|
||||
if (m_interval > 0 && boost::get_system_time() > m_next_backup) {
|
||||
m_tasks.push_back({ Backup, 0, std::string(), nullptr, ++m_task_seq });
|
||||
m_next_backup += boost::posix_time::seconds(m_interval);
|
||||
|
||||
Reference in New Issue
Block a user