From 93b89cf4fce6b48ba8e26e9e907cbbb9e9632cf1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 13 Jun 2020 14:11:12 +0200 Subject: Fix related videos sometimes being skipped --- src/VideoPlayer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/VideoPlayer.cpp') diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index b88789d..9845442 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -12,8 +12,8 @@ #include #include -const int RETRY_TIME_MS = 1000; -const int MAX_RETRIES_CONNECT = 5; +const int RETRY_TIME_MS = 500; +const int MAX_RETRIES_CONNECT = 10; const int READ_TIMEOUT_MS = 200; namespace QuickMedia { @@ -136,9 +136,9 @@ namespace QuickMedia { } VideoPlayer::Error VideoPlayer::update() { - int max_retries_find_window = 10; + int max_retries_find_window = 20; if(use_tor) - max_retries_find_window = 30; + max_retries_find_window = 60; if(ipc_socket == -1) return Error::INIT_FAILED; -- cgit v1.2.3