stops transport plugins in the end

This commit is contained in:
Ronald Steinke 2018-02-13 09:33:55 +01:00
parent 782fe8e16b
commit 3c4aa53894
2 changed files with 4 additions and 1 deletions

View File

@ -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):

View File

@ -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))