Skip to content

Commit

Permalink
Abort previous engine request on new engine request creation (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaDemchenko authored Nov 18, 2024
1 parent ace3b9b commit f896c72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/p2p-media-loader-core/src/hybrid-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export class HybridLoader {
}
}

this.engineRequest?.abort();
this.engineRequest = engineRequest;
} catch {
engineRequest.reject();
Expand Down

0 comments on commit f896c72

Please sign in to comment.