Commits

puzzlet committed 2c51c25

sockets can be list of None (e.g. [None]) when disconnected

Comments (0)

Files changed (1)

         with self.mutex:
             log.log(logging.DEBUG-2, "process_once()")
             sockets = [x._get_socket() for x in self.connections if x is not None]
+            sockets = [x for x in sockets if x is not None]
             if sockets:
                 (i, o, e) = select.select(sockets, [], [], timeout)
                 self.process_data(i)