Only send get_updates_xhr error if we don't have a timeout either.

(imported from commit b77c6c67917f8d2bc5d59fb46f3a5ffa4a0ac443)
This commit is contained in:
Tim Abbott 2013-12-12 17:10:39 -05:00
parent b8579c6848
commit d6aa8ecaff
2 changed files with 2 additions and 2 deletions

View File

@ -477,7 +477,7 @@ function send_message(request) {
} else {
send_message_ajax(request, success);
}
if (get_updates_xhr === undefined) {
if (get_updates_xhr === undefined && get_updates_timeout === undefined) {
restart_get_updates({dont_block: true});
blueslip.error("Restarting get_updates because it was not running during send");
}

View File

@ -62,7 +62,7 @@ var globals =
+ ' send_summarize_in_stream'
+ ' suppress_unread_counts'
+ ' msg_metadata_cache'
+ ' get_updates_xhr'
+ ' get_updates_xhr get_updates_timeout'
;