Commit 8f7cb9b8 authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with iter_connected_role when a client exit while iterations.

parent 80af83f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ class CCServer(object):
        :param role: role to filter
        '''

        for login, client in self._connected.iteritems():
        for login, client in self._connected.items():
            if role is None or client.role == role:
                yield client