2277
return;
2278
}
2280
>
// Local sessions: move the target to the front (keeping its kind),
2281
>
// cancel the in-flight request, and let the queue processor send it.
2282
>
const reordered = [
2283
>
{ requestId: target.request.id, kind: target.kind },
2284
>
...pendingRequests.filter(r => r.request.id !== requestId).map(r => ({ requestId: r.request.id, kind: r.kind })),
2285
>
];
2286
>
this.setPendingRequests(sessionResource, reordered);
2287
>
await this.cancelCurrentRequestForSession(sessionResource, 'queueRunNext');
2288
>
this.processPendingRequests(sessionResource);
2289
}
2290