outdoor users(19)
This commit is contained in:
parent
f975bc29d0
commit
03d3c77895
1 changed files with 103 additions and 103 deletions
|
@ -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);*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue