fixed: race condition when starting a new fresh profile besides master which leads...
authorWiSo <wiso@xbmc.org>
Thu, 27 Dec 2012 14:48:43 +0000 (15:48 +0100)
committerwsoltys <wiso@no.way>
Sat, 29 Dec 2012 21:49:40 +0000 (22:49 +0100)
xbmc/addons/AddonInstaller.cpp

index f3135e4..cba3fb8 100644 (file)
@@ -360,6 +360,9 @@ void CAddonInstaller::UpdateRepos(bool force, bool wait)
     }
     return;
   }
+  // don't run repo update jobs while on the login screen which runs under the master profile
+  if((g_windowManager.GetActiveWindow() & WINDOW_ID_MASK) == WINDOW_LOGIN_SCREEN)
+    return;
   if (!force && m_repoUpdateWatch.IsRunning() && m_repoUpdateWatch.GetElapsedSeconds() < 600)
     return;
   m_repoUpdateWatch.StartZero();