change hotplugNotifier to return correct state transition for cd-rom type and flash...
authorFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 17 Nov 2008 22:17:46 +0000 (23:17 +0100)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 17 Nov 2008 22:17:46 +0000 (23:17 +0100)
lib/python/Plugins/SystemPlugins/Hotplug/plugin.py

index 97ddf4a..e593e94 100644 (file)
@@ -53,7 +53,7 @@ class Hotplug(Protocol):
                
                for callback in hotplugNotifier:
                        try:
-                               callback(dev, media_state)
+                               callback(dev, action or media_state)
                        except AttributeError:
                                hotplugNotifier.remove(callback)