From b09240bc1082a30785f056162da8fa3a57b794f6 Mon Sep 17 00:00:00 2001 From: Tuomas Date: Thu, 20 Feb 2025 15:36:57 -0600 Subject: [PATCH] only return early from progress notification on actual timeout errors --- src/shared/protocol.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shared/protocol.ts b/src/shared/protocol.ts index a0f3d075..97213bf0 100644 --- a/src/shared/protocol.ts +++ b/src/shared/protocol.ts @@ -360,9 +360,7 @@ export abstract class Protocol< const responseHandler = this._responseHandlers.get(messageId); if (this._timeoutInfo.has(messageId) && responseHandler) { try { - if (!this._resetTimeout(messageId)) { - return; - } + this._resetTimeout(messageId); } catch (error) { responseHandler(error as Error); return;