mirror of https://github.com/zulip/zulip.git
Pause for 25 ms in between successful get_updates calls
(imported from commit e86c0b653669cf86b0d8956c2c85eb7610fc342f)
This commit is contained in:
parent
ed490c672f
commit
9bbe12c6cd
|
@ -542,7 +542,10 @@ function get_updates() {
|
||||||
// {then_scroll: true, update_server: false});
|
// {then_scroll: true, update_server: false});
|
||||||
// }
|
// }
|
||||||
|
|
||||||
get_updates_timeout = setTimeout(get_updates, 0);
|
// Pause for 25 milliseconds before restarting the request.
|
||||||
|
// This gives the browser (especially, our frontend test browser)
|
||||||
|
// time to perform other scheduled actions.
|
||||||
|
get_updates_timeout = setTimeout(get_updates, 25);
|
||||||
},
|
},
|
||||||
error: function (xhr, error_type, exn) {
|
error: function (xhr, error_type, exn) {
|
||||||
if (error_type === 'timeout') {
|
if (error_type === 'timeout') {
|
||||||
|
|
Loading…
Reference in New Issue