From 612563f171d7f1f94715c585a6a5cb671f851695 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Tue, 19 Nov 2019 13:13:25 -0800 Subject: [PATCH] Fix regression in timeoutOperations --- lib/session.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}`);