From 16edd155cbabe46f7083a449a6718cbb19873248 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Sat, 30 Nov 2013 00:44:34 +0000 Subject: ... --- tutorials/java/src/phpdbg/ui/DebugSocket.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tutorials/java/src/phpdbg/ui/DebugSocket.java') diff --git a/tutorials/java/src/phpdbg/ui/DebugSocket.java b/tutorials/java/src/phpdbg/ui/DebugSocket.java index b8f30c4300..8e811e9be9 100644 --- a/tutorials/java/src/phpdbg/ui/DebugSocket.java +++ b/tutorials/java/src/phpdbg/ui/DebugSocket.java @@ -74,12 +74,12 @@ public class DebugSocket implements Runnable { } if (reader) { - /* The reader thread part will wait() until there is input */ + /* The reader thread will wait() until there is input */ Socket socket = new Socket(this.host, this.port); + String command; + OutputStream output = socket.getOutputStream(); + do { - String command; - OutputStream output = socket.getOutputStream(); - synchronized(this) { wait(); -- cgit v1.2.1