Skip to content

Commit

Permalink
Fix CLI ffmpeg downloader crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Jun 6, 2024
1 parent f5633c8 commit 6035658
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TwitchDownloaderCLI/Modes/FfmpegHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public XabeProgressHandler(ITaskProgress progress)
progress.SetTemplateStatus("Downloading FFmpeg {0}%", 0);
_timer = new Timer(_ =>
{
if (_percentQueue.IsEmpty) return;

progress.ReportProgress(_percentQueue.Max());
}, null, 0, 100);
}
Expand Down

0 comments on commit 6035658

Please sign in to comment.