for connection_id in self.server.clients:
if self.server.clients[connection_id] == self:
self.server.queue.put((connection_id, self.data))
+ break
def handleConnected(self):
import uuid
def handleClose(self):
print('CONNECTION CLOSED FROM:', self.address)
- for connection_ids in self.server.clients:
+ for connection_id in self.server.clients:
if self.server.clients[connection_id] == self:
del self.server.clients[connection_id]