TD2: Fix the remaining bugs in the IHM chat client.
[TD_SR.git] / TD2 / server / BroadcastoThreadService.java
index 7aa05eb5229c91281bc53068cd0b3a1d3a33058f..fb4737cf7c96e69d946982414ea0b6f179af35a8 100644 (file)
@@ -25,7 +25,7 @@ public class BroadcastoThreadService implements Runnable {
                        e.printStackTrace();
                }
                catch (ClassNotFoundException e) {
-               System.err.println("ClassNotFoundException: " + e);
+                       System.err.println("ClassNotFoundException: " + e);
                        e.printStackTrace();
                }
                finally {
@@ -58,6 +58,7 @@ public class BroadcastoThreadService implements Runnable {
                                end = true; // le thread de service doit terminer
                                break; // do not broadcast the dot that will close all clients threads
                        }
+                       System.out.println("Broadcasting the message \"" + roMsg + "\" received from " + clientSocket.toString());
                        broadcastoMsg(roMsg);
                }
                sharedList.remove(OWriter);