outdoor users(19)

This commit is contained in:
Louis Farina 2021-02-15 17:12:24 +01:00
parent f975bc29d0
commit 03d3c77895

View file

@ -38,9 +38,9 @@ class ReceiveThread extends Thread {
public void run() public void run()
{ {
boolean exit = false; boolean exit = false;
try
{
while(!exit) while(!exit)
{
try
{ {
ObjectInputStream in = new ObjectInputStream(socket.getInputStream()); ObjectInputStream in = new ObjectInputStream(socket.getInputStream());
Notification notif = (Notification) in.readObject(); Notification notif = (Notification) in.readObject();
@ -138,13 +138,13 @@ class ReceiveThread extends Thread {
displayArea.setCaretPosition(displayArea.getDocument().getLength()); displayArea.setCaretPosition(displayArea.getDocument().getLength());
} }
} }
}
catch(Exception e) catch(Exception e)
{ {
/*e.printStackTrace(); e.printStackTrace();
System.out.println("Socket closed"); /*System.out.println("Socket closed");
dest_sockets.remove(socket); dest_sockets.remove(socket);
outdoor_dest_sockets.remove(socket);*/ outdoor_dest_sockets.remove(socket);*/
} }
} }
} }
}