Prevent error responses wedging group request concurrency limit
Fixes https://github.com/vector-im/riot-web/issues/6592pull/21833/head
parent
6ec9e5f670
commit
da1a5616eb
|
@ -62,6 +62,11 @@ function limitConcurrency(fn) {
|
|||
}
|
||||
})
|
||||
.then(fn)
|
||||
.catch((err) => {
|
||||
ongoingRequestCount--;
|
||||
checkBacklog();
|
||||
throw err;
|
||||
})
|
||||
.then((result) => {
|
||||
ongoingRequestCount--;
|
||||
checkBacklog();
|
||||
|
|
Loading…
Reference in New Issue