diff options
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/controller/src/main/java/Test/Common/ControllerServer.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/test/controller/src/main/java/Test/Common/ControllerServer.java b/java/test/controller/src/main/java/Test/Common/ControllerServer.java index 5e4e9fc938b..baefe018eb7 100644 --- a/java/test/controller/src/main/java/Test/Common/ControllerServer.java +++ b/java/test/controller/src/main/java/Test/Common/ControllerServer.java @@ -70,7 +70,13 @@ public class ControllerServer extends Ice.Application line.matches(Pattern.quote("starting serveramdtie...") + ".*") || line.matches("starting test.*" + Pattern.quote("Server...") + ".*")) { - line += reader.readLine(); + String s = reader.readLine(); + if(s == null) + { + System.out.println(line); + break; + } + line += s; continue; } System.out.println(line); @@ -122,7 +128,6 @@ public class ControllerServer extends Ice.Application { } } - current.adapter.remove(current.id); System.out.println("ok"); } |