Browse Source

cfgmgr: don't stop on None result from recvmsg

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac296@2700 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 14 years ago
parent
commit
7acbcf3c09
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/lib/python/isc/config/cfgmgr.py

+ 4 - 3
src/lib/python/isc/config/cfgmgr.py

@@ -382,8 +382,9 @@ class ConfigManager:
         self.running = True
         while (self.running):
             msg, env = self.cc.group_recvmsg(False)
-            if msg and not 'result' in msg:
+            # ignore 'None' value (current result of timeout)
+            # and messages that are answers to questions we did
+            # not ask
+            if msg is not None and not 'result' in msg:
                 answer = self.handle_msg(msg);
                 self.cc.group_reply(env, answer)
-            else:
-                self.running = False