Merge pull request #4655 from codesnake/allow_restart_of_a_pvr_addon_while_in_create
authorjmarshallnz <jcmarsha@gmail.com>
Mon, 5 May 2014 22:49:46 +0000 (10:49 +1200)
committerJonathan Marshall <jmarshall@never.you.mind>
Tue, 6 May 2014 22:43:19 +0000 (10:43 +1200)
Allow restart of a PVR addon while it is still creating

xbmc/pvr/addons/PVRClients.cpp

index 14c9cde..8a59e93 100644 (file)
@@ -203,7 +203,7 @@ bool CPVRClients::StopClient(AddonPtr client, bool bRestart)
   CSingleLock lock(m_critSection);  
   int iId = GetClientId(client);
   PVR_CLIENT mappedClient;
-  if (GetConnectedClient(iId, mappedClient))
+  if (GetClient(iId, mappedClient))
   {
     if (bRestart)
       mappedClient->ReCreate();