Skip to content

Commit

Permalink
addons: fix CAddonMgr::CanAddonBeDisabled() for disabled addons
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Mar 3, 2015
1 parent 6bb6eea commit 23e27ea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions xbmc/addons/AddonManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,6 @@ bool CAddonMgr::CanAddonBeDisabled(const std::string& ID)
return false;

CSingleLock lock(m_critSection);
// can't disable an already disabled addon
if (IsAddonDisabled(ID))
return false;

AddonPtr localAddon;
// can't disable an addon that isn't installed
if (!IsAddonInstalled(ID, localAddon))
Expand Down

0 comments on commit 23e27ea

Please sign in to comment.