Prevent error responses wedging group request concurrency limit
Fixes https://github.com/vector-im/riot-web/issues/6592
This commit is contained in:
@@ -62,6 +62,11 @@ function limitConcurrency(fn) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(fn)
|
.then(fn)
|
||||||
|
.catch((err) => {
|
||||||
|
ongoingRequestCount--;
|
||||||
|
checkBacklog();
|
||||||
|
throw err;
|
||||||
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
ongoingRequestCount--;
|
ongoingRequestCount--;
|
||||||
checkBacklog();
|
checkBacklog();
|
||||||
|
|||||||
Reference in New Issue
Block a user