diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 3 |
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)); } |