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

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

Issue 8391009: Reroll r634 "Total now reads mortgage sample from server" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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) {

Powered by Google App Engine
This is Rietveld 408576698