Skip to content

Commit

Permalink
Fix CLI ffmpeg downloader crashing (lay295#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Jun 8, 2024
1 parent c00a990 commit 2765275
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 2765275

Please sign in to comment.