[svn] commit: r1669 - /trunk/src/bin/xfrout/xfrout.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Apr 1 11:49:17 UTC 2010


Author: zhanglikun
Date: Thu Apr  1 11:49:17 2010
New Revision: 1669

Log:
Fix bug caused by the code committed in reversion 1662.

Modified:
    trunk/src/bin/xfrout/xfrout.py.in

Modified: trunk/src/bin/xfrout/xfrout.py.in
==============================================================================
--- trunk/src/bin/xfrout/xfrout.py.in (original)
+++ trunk/src/bin/xfrout/xfrout.py.in Thu Apr  1 11:49:17 2010
@@ -319,6 +319,7 @@
 
 class XfroutServer:
     def __init__(self):
+        self._unix_socket_server = None
         self._listen_sock_file = '/tmp/auth_xfrout_conn' # TODO, should this be configurable in cfgmgr
         self._shutdown_event = threading.Event()
         self._cc = isc.config.ModuleCCSession(SPECFILE_LOCATION, self.config_handler, self.command_handler)
@@ -349,7 +350,8 @@
                 continue
             self._config_data[key] = new_config[key]
         
-        self._unix_socket_server.update_config_data(self._config_data)
+        if self._unix_socket_server:
+            self._unix_socket_server.update_config_data(self._config_data)
 
         return answer
 
@@ -359,7 +361,8 @@
         terminated.
         '''
         self._shutdown_event.set()
-        self._unix_socket_server.shutdown()
+        if self._unix_socket_server:
+            self._unix_socket_server.shutdown()
 
         main_thread = threading.currentThread()
         for th in threading.enumerate():




More information about the bind10-changes mailing list