X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TD2%2Fserver%2FBroadcastoThreadService.java;h=fb4737cf7c96e69d946982414ea0b6f179af35a8;hb=92d3f605b46c717c1f8dc7aa30dd25db518b7582;hp=7aa05eb5229c91281bc53068cd0b3a1d3a33058f;hpb=c4d2497c0d03e16d57bc40f26124a5d0ef4a5b75;p=TD_SR.git diff --git a/TD2/server/BroadcastoThreadService.java b/TD2/server/BroadcastoThreadService.java index 7aa05eb..fb4737c 100644 --- a/TD2/server/BroadcastoThreadService.java +++ b/TD2/server/BroadcastoThreadService.java @@ -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);