From dbaf4b42a987ddccecd1c669db86009b876288f9 Mon Sep 17 00:00:00 2001 From: Bjoern Sikora Date: Fri, 21 May 2010 09:21:31 +0200 Subject: [PATCH] Only check config option start_offline once, not in the loop which would avoid signal handling from taking effect. --- src/main.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ae8135c..e2d7ed9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -308,12 +308,12 @@ int main(int argc, char *argv[]) if ( init_daemon_mode(updater->get_config()->get_daemon_mode()) != 0 ) return -1; + // Should we start in offline mode? + is_online = !updater->get_config()->get_start_offline(); + // service processing starts here do { - // Should we start in offline mode? - is_online = !updater->get_config()->get_start_offline(); - if ( is_online == true ) { // update all configured services -- 1.7.1