Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: samples/total/src/TotalRunner.dart

Issue 8292003: Total now reads mortgage sample from server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Process stdout and stderr renames Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/total/src/SYLKProducer.dart ('k') | samples/total/src/TotalServer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « samples/total/src/SYLKProducer.dart ('k') | samples/total/src/TotalServer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698