diff --git a/gajim/plugins/pluginmanager.py b/gajim/plugins/pluginmanager.py
index 506371b2ae0681c884a75f4f04a55624dee51c7f..0161138479e6b20faebfbee013edae4a94fa9ecf 100644
--- a/gajim/plugins/pluginmanager.py
+++ b/gajim/plugins/pluginmanager.py
@@ -406,9 +406,9 @@ class PluginManager(metaclass=Singleton):
             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