Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
63c8d676cf
1 changed files with 5 additions and 1 deletions
|
@ -69,9 +69,13 @@ class FlairStore extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bulk lookup ongoing, return promise to resolve/reject
|
// Bulk lookup ongoing, return promise to resolve/reject
|
||||||
if (this._usersPending[userId] || this._usersInFlight[userId]) {
|
if (this._usersPending[userId]) {
|
||||||
return this._usersPending[userId].prom;
|
return this._usersPending[userId].prom;
|
||||||
}
|
}
|
||||||
|
// User has been moved from pending to in-flight
|
||||||
|
if (this._usersInFlight[userId]) {
|
||||||
|
return this._usersInFlight[userId].prom;
|
||||||
|
}
|
||||||
|
|
||||||
this._usersPending[userId] = {};
|
this._usersPending[userId] = {};
|
||||||
this._usersPending[userId].prom = new Promise((resolve, reject) => {
|
this._usersPending[userId].prom = new Promise((resolve, reject) => {
|
||||||
|
|
Loading…
Reference in a new issue