projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37ebf46
)
[fix] stop service addon before attempting to uninstall/delete it
author
amet
<amet.nospam@gmail.com>
Sun, 13 Jan 2013 20:55:41 +0000
(
00:55
+0400)
committer
S. Davilla
<davilla@4pi.com>
Fri, 18 Jan 2013 15:22:11 +0000
(10:22 -0500)
xbmc/addons/AddonInstaller.cpp
patch
|
blob
|
history
diff --git
a/xbmc/addons/AddonInstaller.cpp
b/xbmc/addons/AddonInstaller.cpp
index
d273718
..
dea044e
100644
(file)
--- a/
xbmc/addons/AddonInstaller.cpp
+++ b/
xbmc/addons/AddonInstaller.cpp
@@
-748,7
+748,12
@@
bool CAddonUnInstallJob::DoWork()
// stop the pvr manager, so running pvr add-ons are stopped and closed
PVR::CPVRManager::Get().Stop();
}
-
+ if (m_addon->Type() == ADDON_SERVICE)
+ {
+ boost::shared_ptr<CService> service = boost::dynamic_pointer_cast<CService>(m_addon);
+ if (service)
+ service->Stop();
+ }
if (!CAddonInstallJob::DeleteAddon(m_addon->Path()))
return false;