diff --git a/serveur/Server.py b/serveur/Server.py index 2eb7f25..5f382b4 100644 --- a/serveur/Server.py +++ b/serveur/Server.py @@ -67,7 +67,7 @@ def handleRequest(connection, data): def broadcastMsg(connection,message): for con, value in usersConnected.items() : - if usersConnected[con][1] is not None or con != connection: + if usersConnected[con][1] is not None and con != connection: try: con.sendall(message.encode()) except Exception as e :