Chromium Code Reviews| Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java |
| diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java |
| index c52ddf04b75fc3061a3f9acb75bab6496ba07e04..b4989ecae3ea592234b24e6ebac79599ad9ef9c2 100644 |
| --- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java |
| +++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java |
| @@ -48,16 +48,18 @@ public class ByteResponseStream implements ResponseStream { |
| @Override |
| public JsonObject take() throws Exception { |
| - String line = reader.readLine(); |
| - if (line == null) { |
| - return null; |
| - } |
| + while (true) { |
|
Brian Wilkerson
2014/06/17 21:38:23
Given that the while is only useful for debugging,
scheglov
2014/06/17 22:50:33
Rolled back.
|
| + String line = reader.readLine(); |
| + if (line == null) { |
| + return null; |
| + } |
| // if (line.contains("\"event\":\"server.status\"")) { |
| -// System.out.println(System.currentTimeMillis() + " <= " + line); |
| +// System.out.println(System.currentTimeMillis() + " <= " + line); |
| // } |
| // if (!line.startsWith("{")) { |
| // continue; |
| // } |
| - return (JsonObject) new JsonParser().parse(line); |
| + return (JsonObject) new JsonParser().parse(line); |
| + } |
| } |
| } |