Parcourir la source

[2292] Unrelated: fix possible in None bug (not reproduced)

In case the EINTR would happen, the reads variable would contain None,
making the in operator fail.
Michal 'vorner' Vaner il y a 12 ans
Parent
commit
61a6cfae29
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/bin/zonemgr/zonemgr.py.in

+ 1 - 0
src/bin/zonemgr/zonemgr.py.in

@@ -691,6 +691,7 @@ class Zonemgr:
         try:
             while not self._shutdown_event.is_set():
                 fileno = self._module_cc.get_socket().fileno()
+                reads = []
                 # Wait with select() until there is something to read,
                 # and then read it using a non-blocking read
                 # This may or may not be relevant data for this loop,