Skip to content

Commit b09240b

Browse files
committed
only return early from progress notification on actual timeout errors
1 parent 28415d3 commit b09240b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/shared/protocol.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,7 @@ export abstract class Protocol<
360360
const responseHandler = this._responseHandlers.get(messageId);
361361
if (this._timeoutInfo.has(messageId) && responseHandler) {
362362
try {
363-
if (!this._resetTimeout(messageId)) {
364-
return;
365-
}
363+
this._resetTimeout(messageId);
366364
} catch (error) {
367365
responseHandler(error as Error);
368366
return;

0 commit comments

Comments
 (0)