From 53968ae15367bcea22829683b45701a70612e8d5 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sat, 3 Oct 2020 21:47:53 +0200 Subject: [PATCH] fixed a bug in remote race --- ScStwLibraries/sources/client/scstwremoterace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ScStwLibraries/sources/client/scstwremoterace.cpp b/ScStwLibraries/sources/client/scstwremoterace.cpp index d0ca62e..7ac0307 100644 --- a/ScStwLibraries/sources/client/scstwremoterace.cpp +++ b/ScStwLibraries/sources/client/scstwremoterace.cpp @@ -100,6 +100,7 @@ void ScStwRemoteRace::handleClientStateChange() { this->localTimers.clear(); this->localTimers = this->timers; this->timers.clear(); + this->remoteTimers.clear(); break; case ScStwClient::DISCONNECTED: foreach(ScStwRemoteTimer *remoteTimer, this->remoteTimers) @@ -185,7 +186,6 @@ void ScStwRemoteRace::refreshDetails(QVariantMap details) { } emit this->detailsChanged(); - } void ScStwRemoteRace::rebuildRemoteTimers(QVariantList remoteTimers) { @@ -212,6 +212,7 @@ bool ScStwRemoteRace::refreshRemoteTimers(QVariantList remoteTimers) { if(remoteTimers.length() != this->remoteTimers.length()){ // local timers are out of sync this->rebuildRemoteTimers(remoteTimers); + qDebug() << "rebuilding remote timers"; } foreach(QVariant remoteTimer, remoteTimers){