Auto-apply updates if enabled.
This commit is contained in:
parent
ab25c96821
commit
e7bab66d29
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue