Skip to content

Commit

Permalink
Fixed node hanging on unnecessary timeout when fetchJson fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 12, 2020
1 parent e2c830b commit fdf2253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export function fetchJson(connection: string | ConnectionInfo, json?: string, pr
} catch (error) {
response = (<any>error).response;
if (response == null) {
runningTimeout.cancel();
logger.throwError("missing response", Logger.errors.SERVER_ERROR, {
serverError: error,
url: url
Expand Down

0 comments on commit fdf2253

Please sign in to comment.