diff options
-rw-r--r-- | xbmc/linux/HALProvider.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xbmc/linux/HALProvider.cpp b/xbmc/linux/HALProvider.cpp index a303a89dc9..415627e194 100644 --- a/xbmc/linux/HALProvider.cpp +++ b/xbmc/linux/HALProvider.cpp @@ -86,12 +86,10 @@ std::vector<CStdString> CHALProvider::GetDiskUsage() bool CHALProvider::PumpDriveChangeEvents(IStorageEventsCallback *callback) { //Pump HalManager dry of events - while(g_HalManager.Update()) ; + bool changed = false; + while (g_HalManager.Update()) + changed = true; - VECSOURCES drives; - GetRemovableDrives(drives); - bool changed = drives.size() != m_removableLength; - m_removableLength = drives.size(); return changed; } #endif |