Browse Source

[2855] Don't loop to check membership

Mukund Sivaraman 12 years ago
parent
commit
ac446f0280
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/lib/python/isc/server_common/bind10_server.py.in

+ 4 - 5
src/lib/python/isc/server_common/bind10_server.py.in

@@ -149,11 +149,10 @@ class BIND10Server:
                     continue
                 else:
                     raise
-            for fileno in reads:
-                if fileno == cc_fileno:
-                    # this shouldn't raise an exception (if it does, we'll
-                    # propagate it)
-                    self._mod_cc.check_command(True)
+            if cc_fileno in reads:
+                # this shouldn't raise an exception (if it does, we'll
+                # propagate it)
+                self._mod_cc.check_command(True)
 
         self._mod_cc.send_stopping()