aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-01-13 01:26:22 +0100
committerdec05eba <dec05eba@protonmail.com>2023-01-13 01:26:22 +0100
commit7d221ad323210b78c6759ebe55633170abe3ee42 (patch)
tree8c2817ffebaddf8f3a2f88a67cf5bf72c48b4eb6 /src
parent4241575b074d26b9a8edf0150b77d128f888b6f9 (diff)
Matrix: check for sync error on every first sync
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Matrix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 5f96fa0..269e9bb 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -1763,7 +1763,7 @@ namespace QuickMedia {
goto sync_end;
}
- if(initial_sync && json_root.IsObject()) {
+ if(first_sync && json_root.IsObject()) {
const rapidjson::Value &errcode_json = GetMember(json_root, "errcode");
if(errcode_json.IsString()) {
for(const char *sync_fail_error_code : sync_fail_error_codes) {
@@ -1863,6 +1863,7 @@ namespace QuickMedia {
}
sync_end:
+ first_sync = false;
if(sync_running)
std::this_thread::sleep_for(std::chrono::milliseconds(500));
}