diff --git a/lib/session.ts b/lib/session.ts index b3a2336..313846b 100644 --- a/lib/session.ts +++ b/lib/session.ts @@ -403,7 +403,9 @@ export async function timeoutOperations( const faults = []; const operations = []; - for (const [commandKey, operation] of Object.entries(operations)) { + for (const [commandKey, operation] of Object.entries( + sessionContext.operations + )) { if (operation.name !== "Download") throw new Error(`Unknown operation name ${operation.name}`);