1
0
mirror of https://github.com/beestat/app.git synced 2025-08-30 23:00:15 -04:00

Fixed issue where runtime->sync() ran without updating sync status.

Happened for users who were connected but had no active thermostats.
This commit is contained in:
Jon Ziebell 2020-02-03 20:17:58 -05:00
parent 131fee9442
commit 316e06fe21

View File

@ -82,18 +82,18 @@ class runtime extends cora\api {
$this->sync_backwards($thermostat_id);
}
// If only syncing one thermostat this will delay the sync of the other
// thermostat. Not a huge deal, just FYI.
$this->api(
'user',
'update_sync_status',
[
'key' => 'runtime'
]
);
$this->database->release_lock($lock_name);
}
// If only syncing one thermostat this will delay the sync of the other
// thermostat. Not a huge deal, just FYI.
$this->api(
'user',
'update_sync_status',
[
'key' => 'runtime'
]
);
} catch(cora\exception $e) {
return false;
}