Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

js: Prevent scheduling a non-immediate reload while one is happening.

Alex Vandiver8c1c02d16400
diff --git a/static/js/reload.js b/static/js/reload.js
index e396f036734..5b8b846a416 100644
--- a/static/js/reload.js
+++ b/static/js/reload.js
@@ -241,7 +241,7 @@ export function initiate({
do_reload_app(send_after_reload, save_pointer, save_narrow, save_compose, message_html);
}
- if (reload_state.is_pending()) {
+ if (reload_state.is_pending() || reload_state.is_in_progress()) {
return;
}
reload_state.set_state_to_pending();