mirror of https://github.com/zulip/zulip.git
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:
parent
91fb10e7dc
commit
c1269d9e42
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue