Auto-apply updates if enabled.

This commit is contained in:
Adam Ierymenko 2017-01-12 13:54:08 -08:00
parent ab25c96821
commit e7bab66d29
2 changed files with 5 additions and 4 deletions

View file

@ -722,7 +722,8 @@ public:
// Check for updates (if enabled)
if ((_updater)&&((now - lastUpdateCheck) > 10000)) {
lastUpdateCheck = now;
_updater->check(now);
if (_updater->check(now) && _updateAutoApply)
_updater->apply();
}
// Refresh bindings in case device's interfaces have changed, and also sync routes to update any shadow routes (e.g. shadow default)