mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
channel: Don't send outgoing HTTP requests during a reload.
This generalizes existing code for the presence code path that is generically useful for avoiding useless work that will be discarded. We make an exception for the one type of request that needs to happen while reloading, namely the one to clean up our event queue.
This commit is contained in:
@@ -308,11 +308,6 @@ function send_presence_to_server(want_redraw) {
|
||||
// DEFAULT_EVENT_QUEUE_TIMEOUT_SECS).
|
||||
server_events.check_for_unsuspend();
|
||||
|
||||
if (reload_state.is_in_progress()) {
|
||||
blueslip.log("Skipping querying presence because reload in progress");
|
||||
return;
|
||||
}
|
||||
|
||||
channel.post({
|
||||
url: '/json/users/me/presence',
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user