Browse Source

outdoor users(18)

Louis Farina 11 months ago
parent
commit
f975bc29d0
2 changed files with 4 additions and 3 deletions
  1. BIN
      Projet.jar
  2. 4
    3
      src/chat/ReceiveThread.java

BIN
Projet.jar View File


+ 4
- 3
src/chat/ReceiveThread.java View File

@@ -90,7 +90,7 @@ class ReceiveThread extends Thread {
90 90
 				            known_users.remove(dn.getAuthor());
91 91
 				            known_outdoor_users.remove(dn.getAuthor());
92 92
 				            
93
-				          /*if(!dn.getAuthor().equals(user) && !(dn.getAuthor().isOutdoor() && !isOutdoor))
93
+				          if(!dn.getAuthor().equals(user) && !(dn.getAuthor().isOutdoor() && !isOutdoor))
94 94
 				            {
95 95
 				            	exit = true;
96 96
 				            	
@@ -99,7 +99,7 @@ class ReceiveThread extends Thread {
99 99
 				            	dest_sockets.remove(socket);
100 100
 				            	else
101 101
 				            	outdoor_dest_sockets.remove(socket);
102
-				            }*/
102
+				            }
103 103
 			        	}
104 104
 			        	
105 105
 			        	else if (notif instanceof ConnectNotification)
@@ -141,9 +141,10 @@ class ReceiveThread extends Thread {
141 141
     	}
142 142
 		catch(Exception e)
143 143
     	{
144
+			/*e.printStackTrace();
144 145
 			System.out.println("Socket closed");
145 146
         	dest_sockets.remove(socket);
146
-        	outdoor_dest_sockets.remove(socket);
147
+        	outdoor_dest_sockets.remove(socket);*/
147 148
     	}
148 149
 	}
149 150
 }

Loading…
Cancel
Save