From 191c47bf0fea79e9362faa58483d319b66db7d04 Mon Sep 17 00:00:00 2001 From: DimaDemchenko Date: Mon, 18 Nov 2024 10:53:45 +0200 Subject: [PATCH] Abort previous engine request on new engine request creation --- packages/p2p-media-loader-core/src/hybrid-loader.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/p2p-media-loader-core/src/hybrid-loader.ts b/packages/p2p-media-loader-core/src/hybrid-loader.ts index 813910fe..53e7c80e 100644 --- a/packages/p2p-media-loader-core/src/hybrid-loader.ts +++ b/packages/p2p-media-loader-core/src/hybrid-loader.ts @@ -132,6 +132,7 @@ export class HybridLoader { } } + this.engineRequest?.abort(); this.engineRequest = engineRequest; } catch { engineRequest.reject();