mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Prevent error responses wedging group request concurrency limit
Fixes https://github.com/vector-im/riot-web/issues/6592
This commit is contained in:
parent
6ec9e5f670
commit
da1a5616eb
1 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,11 @@ function limitConcurrency(fn) {
|
|||
}
|
||||
})
|
||||
.then(fn)
|
||||
.catch((err) => {
|
||||
ongoingRequestCount--;
|
||||
checkBacklog();
|
||||
throw err;
|
||||
})
|
||||
.then((result) => {
|
||||
ongoingRequestCount--;
|
||||
checkBacklog();
|
||||
|
|
Loading…
Reference in a new issue