1
0
mirror of https://github.com/beestat/app.git synced 2025-09-11 14:49:06 -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,6 +82,9 @@ class runtime extends cora\api {
$this->sync_backwards($thermostat_id);
}
$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(
@ -91,9 +94,6 @@ class runtime extends cora\api {
'key' => 'runtime'
]
);
$this->database->release_lock($lock_name);
}
} catch(cora\exception $e) {
return false;
}