Commit 7acbcf3c authored by Jelte Jansen's avatar Jelte Jansen
Browse files

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
parent a4befeef
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment