Hotplug: also close thread on language change
authorMoritz Venn <moritz.venn@freaque.net>
Sun, 19 Jun 2011 16:44:49 +0000 (18:44 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 17 Aug 2011 11:59:45 +0000 (13:59 +0200)
commit28049a70f8d591d4b6f61ce30c8066e2c00fc6aa
tree34d5cb21ad3427be3f14d5ae248f56002632d1b1
parent0594e9b14342c2bca8b574ffabbc58d5dcf80dab
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>
lib/python/Plugins/SystemPlugins/Hotplug/plugin.py