Chromium Code Reviews| Index: samples/total/src/TotalRunner.dart |
| diff --git a/samples/total/src/TotalRunner.dart b/samples/total/src/TotalRunner.dart |
| index 1785e7cb6249da3a74e85ff7cb3c66c28565b659..d34510c0db70d33ca2d798acd15e3b6eeb8be7f3 100755 |
| --- a/samples/total/src/TotalRunner.dart |
| +++ b/samples/total/src/TotalRunner.dart |
| @@ -15,6 +15,7 @@ void main() { |
| void keepServerRunning(int status, ServerRunner runner) { |
| switch (runner.lastExitString) { |
| case RESTART: |
| + runner.lastExitString = ''; |
| runner.run(keepServerRunning); |
| break; |
| case EXIT: |
| @@ -55,8 +56,8 @@ class ServerRunner { |
| dart.start(); |
| - readMore(false, dart.stdoutStream, new List<int>(_BUFSIZE), new StringBuffer()); |
| - readMore(false, dart.stderrStream, new List<int>(_BUFSIZE), new StringBuffer()); |
| + readMore(false, dart.stdout, new List<int>(_BUFSIZE), new StringBuffer()); |
|
Dan Rice
2011/10/25 21:33:17
should this be stdout or stdoutStream?
rchandia
2011/10/27 14:46:48
Got renamed as of r602 (stdout -> stdoutStream)
|
| + readMore(false, dart.stderr, new List<int>(_BUFSIZE), new StringBuffer()); |
|
Dan Rice
2011/10/25 21:33:17
should this be stderr or stderrStream?
rchandia
2011/10/27 14:46:48
Got renamed as of r602
|
| } |
| void readMore(bool fromCallback, InputStream i, List<int> buf, StringBuffer readSoFar) { |