Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Prevent error responses wedging group request concurrency limit #1867

Merged
merged 3 commits into from
May 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/stores/GroupStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ function limitConcurrency(fn) {
}
})
.then(fn)
.catch((err) => {
ongoingRequestCount--;
checkBacklog();
throw err;
})
.then((result) => {
ongoingRequestCount--;
checkBacklog();
Expand Down