bugfixes TCP

This commit is contained in:
Louis Farina 2021-01-12 17:52:49 +01:00
parent b99a346766
commit 11c2af4648

View file

@ -83,8 +83,13 @@ class ReceiveThread extends Thread {
displayArea.append(message.getAuthor() + " has left the chat.\n");
for(int i = 0;i < known_users.size();i ++)
{
if (known_users.get(i).getName().equals(message.getAuthor()))
known_users.remove(i);
{
known_users.remove(i);
break;
//System.out.println("Removing " + message.getAuthor());
}
}
knownUsersPanel.setText("");
knownUsersPanel.append("Online:\n");