diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-06-13 14:11:12 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-06-13 14:11:12 +0200 |
commit | 93b89cf4fce6b48ba8e26e9e907cbbb9e9632cf1 (patch) | |
tree | 8cb4ec37edd085cd2fa96750e14c1a6ae42a05f2 /src/VideoPlayer.cpp | |
parent | 31239d029e0449ca18b258aeacb46b45ee54aab0 (diff) |
Fix related videos sometimes being skipped
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r-- | src/VideoPlayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 <fcntl.h> #include <signal.h> -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; |