Browse Source

removed unnecessary sleep() from ccsession.cc, added note for bob to implement 'i have started' messages for modules

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1582 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
23d5e5e2dc
2 changed files with 2 additions and 5 deletions
  1. 2 0
      src/bin/bind10/bind10.py.in
  2. 0 5
      src/lib/config/ccsession.cc

+ 2 - 0
src/bin/bind10/bind10.py.in

@@ -255,6 +255,8 @@ class BoB:
         # by this one
         # sleep until b10-cfgmgr is fully up and running, this is a good place
         # to have a (short) timeout on synchronized groupsend/receive
+        # TODO: replace the sleep by a listen for ConfigManager started
+        # message
         time.sleep(1)
         if self.verbose:
             print("[XX] starting ccsession")

+ 0 - 5
src/lib/config/ccsession.cc

@@ -235,16 +235,11 @@ ModuleCCSession::init(
 {
     module_specification_ = readModuleSpecification(spec_file_name);
     setModuleSpec(module_specification_);
-    sleep(1);
 
     module_name_ = module_specification_.getFullSpec()->get("module_name")->stringValue();
     config_handler_ = config_handler;
     command_handler_ = command_handler;
 
-    // todo: workaround, let boss wait until msgq is started
-    // and remove sleep here
-    sleep(1);
-
     ElementPtr answer, env;
 
     session_.establish();