From fa97fc74b2f27a962b5fc795ca61cf5d6a82c00f Mon Sep 17 00:00:00 2001 From: Matthew Arbesfeld Date: Mon, 21 Jul 2014 20:08:20 -0700 Subject: [PATCH] Fix run --once test. --- tools/run-app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/run-app.js b/tools/run-app.js index d2ed22a0b9..0a52320191 100644 --- a/tools/run-app.js +++ b/tools/run-app.js @@ -482,7 +482,7 @@ _.extend(AppRunner.prototype, { return { outcome: 'stopped', bundleResult: bundleResult }; if (self.runFuture) throw new Error("already have future?"); - self.runFuture = new Future; + var runFuture = self.runFuture = new Future; // Run the program var appProcess = new AppProcess({ @@ -552,7 +552,7 @@ _.extend(AppRunner.prototype, { // Wait for either the process to exit, or (if watchForChanges) a // source file to change. Or, for stop() to be called. - var ret = self.runFuture.wait(); + var ret = runFuture.wait(); while (ret.outcome === 'changed-refreshable') { // We stay in this loop as long as only refreshable assets have changed.