diff --git a/packages/p2p-media-loader-core/src/segments-storage/segments-storage.ts b/packages/p2p-media-loader-core/src/segments-storage/segments-storage.ts index 5a93b9fe..31a6c6dd 100644 --- a/packages/p2p-media-loader-core/src/segments-storage/segments-storage.ts +++ b/packages/p2p-media-loader-core/src/segments-storage/segments-storage.ts @@ -161,12 +161,12 @@ export class SegmentsMemoryStorage implements ISegmentsStorage { let shouldRemove = false; if (isLiveStream) { - shouldRemove = currentPlayback >= highDemandTimeWindow + endTime; + shouldRemove = currentPlayback > highDemandTimeWindow + endTime; } else { const httpDownloadTimeWindow = this.getHttpDownloadTimeWindow(streamType); shouldRemove = - currentPlayback >= endTime + httpDownloadTimeWindow * 1.05; + currentPlayback > endTime + httpDownloadTimeWindow * 1.05; } if (shouldRemove) {