diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-01-12 13:54:08 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-01-12 13:54:08 -0800 |
| commit | e7bab66d291acdd627e3bcfe434792ce360483b0 (patch) | |
| tree | 5f89983938b18c78c7407c49f56f596c00cac43c /service/OneService.cpp | |
| parent | ab25c968212e402a2b2b8d562f3affac9e8717b9 (diff) | |
| download | infinitytier-e7bab66d291acdd627e3bcfe434792ce360483b0.tar.gz infinitytier-e7bab66d291acdd627e3bcfe434792ce360483b0.zip | |
Auto-apply updates if enabled.
Diffstat (limited to 'service/OneService.cpp')
| -rw-r--r-- | service/OneService.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index 697be24a..b273aad4 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -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) |
