aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins
diff options
context:
space:
mode:
authorMoritz Venn <moritz.venn@freaque.net>2011-06-19 18:44:49 +0200
committerghost <andreas.monzner@multimedia-labs.de>2011-08-17 13:59:45 +0200
commit28049a70f8d591d4b6f61ce30c8066e2c00fc6aa (patch)
tree34d5cb21ad3427be3f14d5ae248f56002632d1b1 /lib/python/Plugins/SystemPlugins
parent0594e9b14342c2bca8b574ffabbc58d5dcf80dab (diff)
downloadenigma2-28049a70f8d591d4b6f61ce30c8066e2c00fc6aa.tar.gz
enigma2-28049a70f8d591d4b6f61ce30c8066e2c00fc6aa.zip
Hotplug: also close thread on language change
Previously after a language thread the bdpoll variable was overwritten leaving the old thread run forever and only closing the new one on shutdown (a language changes does NOT call the plugin close handler but the start handler is called again). so before creating a new bdpoll instance check if an old one exists and unset the running flag. Signed-off-by: Moritz Venn <moritz.venn@freaque.net> Signed-off-by: ghost <andreas.monzner@multimedia-labs.de>
Diffstat (limited to 'lib/python/Plugins/SystemPlugins')
-rw-r--r--lib/python/Plugins/SystemPlugins/Hotplug/plugin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py b/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py
index 21b214a5..e26a93c6 100644
--- a/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py
@@ -256,6 +256,8 @@ def autostart(reason, **kwargs):
self.__lock.release()
netlink = Netlink()
+ if bdpoll is not None:
+ bdpoll.running = False
bdpoll = BDPoll()
for blockdev, removable, is_cdrom, medium_found in harddiskmanager.devices_scanned_on_init:
if removable or is_cdrom: