Skip to content

Commit

Permalink
fix: Abort requests when caught in an error (#508)
Browse files Browse the repository at this point in the history
If we don't respond the request, it will hang the tab. Since it errored, we
should cancel it.
  • Loading branch information
Robdel12 committed May 15, 2020
1 parent fa7c7d6 commit 1c2585d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/asset-discovery-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export class AssetDiscoveryService extends PercyClientService {
await request.continue()
} catch (error) {
logError(error)
await request.abort()
}
})

Expand Down

0 comments on commit 1c2585d

Please sign in to comment.