Skip to content
Snippets Groups Projects
Commit 26c4ee9e authored by Luca Rougeron's avatar Luca Rougeron
Browse files

modifs

parent fb88dfb4
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ public class Client {
this.user.out.writeUTF("exit");
sc.close();
System.out.println("Disconnected");
break;
System.exit(1);
}else {
out.writeUTF(to_send);
}
......
......@@ -34,7 +34,9 @@ public class ClientMessageReceptor extends Thread{
System.out.println(message);
}catch (EOFException e){
this.client.sock.close();
break;
System.out.println("___Déconnexion du serveur___");
System.out.println("___Fin programme___");
System.exit(1);
}
}
} catch (IOException e) {
......
package server;
import java.util.List;
public class Main {
public static void main(String[] args) {
Serveur serveur = new Serveur();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment