This commit is contained in:
sidya82 2015-04-02 17:56:09 +02:00
parent dee6d9e6cd
commit 3ac76d2b55

View File

@ -67,7 +67,7 @@ def handleRequest(connection, data):
def broadcastMsg(connection,message): def broadcastMsg(connection,message):
for con, value in usersConnected.items() : 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: try:
con.sendall(message.encode()) con.sendall(message.encode())
except Exception as e : except Exception as e :