mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 22:15:04 +02:00
Fix connection reservation logic (#9153)
This commit is contained in:
@@ -251,8 +251,8 @@ export class ClientSession implements Session {
|
||||
onEnd = useReserveContext ? ctx.pipeline.context.adapterManager?.reserveContext?.(cid) : undefined
|
||||
const handleAyncs = async (): Promise<void> => {
|
||||
try {
|
||||
for (const r of (ctx.ctx.contextData as SessionData).asyncRequests ?? []) {
|
||||
await r()
|
||||
for (const r of asyncs) {
|
||||
await r(ctx.ctx)
|
||||
}
|
||||
} finally {
|
||||
onEnd?.()
|
||||
|
||||
Reference in New Issue
Block a user