X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TD2%2Fclient%2FThreadClientSend.java;h=399cfd3139f819247e3a301fe9c88a52b0ed9724;hb=8c3c3f613303ed9670d122cf1aa6f1fc89e8223b;hp=42fe7dfd13c723a5cac6c8e09bbfe4cbf7db611c;hpb=6b300998692af2dca53cf1fe97305d27b56430b0;p=TD_SR.git diff --git a/TD2/client/ThreadClientSend.java b/TD2/client/ThreadClientSend.java index 42fe7df..399cfd3 100644 --- a/TD2/client/ThreadClientSend.java +++ b/TD2/client/ThreadClientSend.java @@ -12,8 +12,8 @@ public class ThreadClientSend implements Runnable { try { userInput = new BufferedReader(new InputStreamReader(System.in)); boolean end = false; - while (!end) { - String line = userInput.readLine(); + while (!end) { + String line = userInput.readLine(); if (line.equals(".")) { end = true; } @@ -32,6 +32,7 @@ public class ThreadClientSend implements Runnable { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } } }