Commit c1948d05 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Get module instance after checking for zeroconf

parent c0178db7
......@@ -406,9 +406,9 @@ def _register_modules_with_handlers(self, plugin):
return
for con in app.connections.values():
for module in plugin.modules:
instance, name = module.get_instance(con)
if not module.zeroconf and con.name == 'Local':
continue
instance, name = module.get_instance(con)
modules.register_single(con, instance, name)
# If handlers have been registered, register the
......@@ -558,9 +558,9 @@ def register_modules_for_account(self, con):
return
for module in plugin.modules:
instance, name = module.get_instance(con)
if not module.zeroconf and con.name == 'Local':
continue
instance, name = module.get_instance(con)
modules.register_single(con, instance, name)
def _plugin_is_active_in_global_config(self, plugin):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment