1853
return;
1854
}
1856
>
// Dequeue all consecutive steering requests and combine them into one
1857
>
const steeringRequests = model.dequeueAllSteeringRequests();
1858
>
1859
>
// Then dequeue a single non-steering request if no steering was found
1860
const nextQueued = steeringRequests.length === 0 ? model.dequeuePendingRequest() : undefined;
1861
1862
const allRequests = steeringRequests.length > 0 ? steeringRequests : (nextQueued ? [nextQueued] : []);
1863
if (allRequests.length === 0) {
1865
>
}
1866
1867
this.trace('processNextPendingRequest', `Processing ${allRequests.length} queued request(s) for session ${model.sessionResource}`);