Skip to content
Snippets Groups Projects
Commit 9ef77757 authored by Alexander Schulz's avatar Alexander Schulz
Browse files

bugfix chat distribution

parent 96b6ad21
No related branches found
No related tags found
No related merge requests found
......@@ -624,8 +624,9 @@ class Server(multiprocessing.Process):
for key in self.local_clients_cache:
if group in key:
if addr[0] != self.local_clients_cache[key][0]:
receiver_list.append(self.local_clients_cache[key][0])
print(self.server_id+": "+"Group receiver list "+str(receiver_list))
if self.local_clients_cache[key][0] not in receiver_list:
receiver_list.append(self.local_clients_cache[key][0])
print(self.server_id+": "+"Group receiver list "+str(receiver_list))
elif addr[0] == self.local_clients_cache[key][0]:
sender = key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment