From 495aa4752c63cc22f609b8ac2c9e5dbe6c1f96a1 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 26 Oct 2021 16:43:07 +0100 Subject: [PATCH] FIX: Correctly avoid concurrent requests in PresenceChannel get This if statement was intended to prevent concurrent `/presence/get` requests, but it was missing a critical line. Now it should function as intended. --- app/assets/javascripts/discourse/app/services/presence.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/app/services/presence.js b/app/assets/javascripts/discourse/app/services/presence.js index d6286030952..0ffcacdc0df 100644 --- a/app/assets/javascripts/discourse/app/services/presence.js +++ b/app/assets/javascripts/discourse/app/services/presence.js @@ -262,6 +262,7 @@ export default class PresenceService extends Service { if (this._initialDataAjax) { // try again next runloop next(this, () => once(this, this._makeInitialDataRequest)); + return; } if (Object.keys(this._initialDataRequests).length === 0) {