only return early from progress notification on actual timeout errors
This commit is contained in:
parent
28415d3917
commit
b09240bc10
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue