mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2024-12-24 07:06:46 +00:00
stops transport plugins in the end
This commit is contained in:
parent
782fe8e16b
commit
3c4aa53894
@ -178,7 +178,9 @@ def stop_plugin(plugin):
|
||||
|
||||
|
||||
def stop_plugins():
|
||||
map(stop_plugin, _plugins)
|
||||
# stop transport plugins after the others
|
||||
map(stop_plugin, filter(lambda p: not p.name.endswith('TransportPlugin'), _plugins))
|
||||
map(stop_plugin, filter(lambda p: p.name.endswith('TransportPlugin'), _plugins))
|
||||
|
||||
|
||||
def init_component(component, api):
|
||||
|
@ -97,6 +97,7 @@ class Plugin(BasicPlugin):
|
||||
|
||||
self.api = api
|
||||
self.events = api.events
|
||||
self.name = self.__class__.__name__
|
||||
|
||||
def get_shelve(self, name):
|
||||
return self.api.db.get_shelve("%s_%s" % (type(self).__name__, name))
|
||||
|
Loading…
Reference in New Issue
Block a user