Skip to content

Commit

Permalink
Allow retries even on non-live streams
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed May 11, 2021
1 parent 8bd0582 commit e6288a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/AdaptiveStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void AdaptiveStream::worker()
if (type_ == AdaptiveTree::SUBTITLE)
retryCount = 1;

while (!ret && !stopped_ && retryCount-- && tree_.has_timeshift_buffer_)
while (!ret && !stopped_ && retryCount--)
{
std::this_thread::sleep_for(std::chrono::seconds(1));
Log(LOGLEVEL_DEBUG, "AdaptiveStream: trying to reload segment ...");
Expand Down

0 comments on commit e6288a4

Please sign in to comment.