From e6288a467e489d15e678de4eb3fad4b778b85964 Mon Sep 17 00:00:00 2001 From: CastagnaIT Date: Tue, 11 May 2021 13:54:18 +0200 Subject: [PATCH] Allow retries even on non-live streams --- src/common/AdaptiveStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/AdaptiveStream.cpp b/src/common/AdaptiveStream.cpp index 6ebf6829b..4014a8004 100644 --- a/src/common/AdaptiveStream.cpp +++ b/src/common/AdaptiveStream.cpp @@ -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 ...");