Skip to content

Commit eaca4b3

Browse files
committed
Update TranscodingService.cs
1 parent 18df5a2 commit eaca4b3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/Transcoding/Services/TranscodingService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,10 @@ private void CleanupSegments()
973973
if (index >= lastIndex - 1)
974974
continue;
975975

976+
// первые 10 сегментов оставляем
977+
if (10 >= index)
978+
continue;
979+
976980
File.Delete(file);
977981
}
978982
catch (System.Exception ex)

0 commit comments

Comments
 (0)