Fix connection reservation logic (#9153)

This commit is contained in:
Denis Bykhov
2025-06-03 08:52:04 +07:00
committed by GitHub
parent 51cc82b175
commit 1705a46bb4
5 changed files with 15 additions and 28 deletions
+2 -2
View File
@@ -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?.()