diff --git a/pc/src/threads/ThreadPrintServer.java b/pc/src/threads/ThreadPrintServer.java index 86fd0121..ec595895 100644 --- a/pc/src/threads/ThreadPrintServer.java +++ b/pc/src/threads/ThreadPrintServer.java @@ -100,11 +100,11 @@ public void run() log.debug("Démarrage de " + Thread.currentThread().getName()); try { - synchronized(buffer) + while(true) { - while(true) + Thread.sleep(100); + synchronized(buffer) { - Thread.sleep(100); buffer.wait(400); buffer.write(); }