From 7d221ad323210b78c6759ebe55633170abe3ee42 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 13 Jan 2023 01:26:22 +0100 Subject: Matrix: check for sync error on every first sync --- src/plugins/Matrix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } -- cgit v1.2.3