bugfixes TCP
This commit is contained in:
parent
b99a346766
commit
11c2af4648
1 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue