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.
This commit is contained in:
David Taylor 2021-10-26 16:43:07 +01:00
parent edc1378aed
commit 495aa4752c
1 changed files with 1 additions and 0 deletions

View File

@ -262,6 +262,7 @@ export default class PresenceService extends Service {
if (this._initialDataAjax) { if (this._initialDataAjax) {
// try again next runloop // try again next runloop
next(this, () => once(this, this._makeInitialDataRequest)); next(this, () => once(this, this._makeInitialDataRequest));
return;
} }
if (Object.keys(this._initialDataRequests).length === 0) { if (Object.keys(this._initialDataRequests).length === 0) {