only return early from progress notification on actual timeout errors

This commit is contained in:
Tuomas 2025-02-20 15:36:57 -06:00
commit b09240bc10

View file

@ -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;