From c1269d9e42eb9de85b8b3cf475c5d5e955b48d25 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Sun, 3 Mar 2013 22:06:36 -0500 Subject: [PATCH] End the tutorial if they don't send us a response. But lengthen the length of time you're willing to wait for one, as a consequence. (imported from commit bbdcf29a8b9d479a08259e5ccabd464e09c18b58) --- zephyr/static/js/tutorial.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zephyr/static/js/tutorial.js b/zephyr/static/js/tutorial.js index a52dac8686..061ae8dd96 100644 --- a/zephyr/static/js/tutorial.js +++ b/zephyr/static/js/tutorial.js @@ -58,9 +58,8 @@ function wait_for_message(time_to_wait_sec, condition) { numCalls += 1; if (numCalls > time_to_wait_sec * 1000 / POLL_INTERVAL_MS) { clearInterval(intervalId); - // Normally we would defer.fail here, but we want the tutorial to continue - // regardless, so we'll resolve it. - deferred.resolve(); + // We didn't get an answer; end the tutorial. + deferred.fail(); } if (received_messages.length > 0) {