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()); |
+ readMore(false, dart.stderr, new List<int>(_BUFSIZE), new StringBuffer()); |
} |
void readMore(bool fromCallback, InputStream i, List<int> buf, StringBuffer readSoFar) { |