diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-17 01:16:39 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-17 01:16:39 +0200 |
commit | 3b45f27f389976718efaccdf71878e5455303da2 (patch) | |
tree | 4db4ee5720912375fb7b2287bb75a1b4a9a768ad /client/UpdatedConfig.cpp | |
parent | b068f321dd9c6077c590473c4f108be87e7eb99d (diff) |
Subsequent config updates. FIX data parsing bug
Diffstat (limited to 'client/UpdatedConfig.cpp')
-rw-r--r-- | client/UpdatedConfig.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/UpdatedConfig.cpp b/client/UpdatedConfig.cpp index 1bae8a2..f8b0fcb 100644 --- a/client/UpdatedConfig.cpp +++ b/client/UpdatedConfig.cpp @@ -135,6 +135,19 @@ end: else { Logger::Info("Config successfully updated!\n"); + + /* reset retry params and setup timer to fire on next planned update */ + time = 0; + updateStatus = 0; + activeSrvIndex = 0; + retryFailed = false; + + configUpdateTimer->stop(); + configUpdateTimer->setInterval(updateInterval * 1000); + if (! configUpdateTimer->isActive()) + { + configUpdateTimer->start(); + } emit updated(); } }
\ No newline at end of file |