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)
This commit is contained in:
Waseem Daher 2013-03-03 22:06:36 -05:00
parent 91fb10e7dc
commit c1269d9e42
1 changed files with 2 additions and 3 deletions

View File

@ -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) {