Browse Source

Fixed close bug

server
Thomas Johnson 2 years ago
parent
commit
01a419658b
  1. 3
      server/SingleServer.java

3
server/SingleServer.java

@ -203,13 +203,14 @@ class ClientHandler implements ProtoHandler
{
synchronized(fellows)
{
String old_username = this.username;
this.username = null;
for (ClientHandler fellow : fellows)
{
if (fellow != this && fellow.username != null)
try
{
fellow.out.sendPart(username);
fellow.out.sendPart(old_username);
} catch (IOException e)
{
}

Loading…
Cancel
Save