diff --git a/plinth/modules/coturn/__init__.py b/plinth/modules/coturn/__init__.py index 4138dff5e..5e74ee7e0 100644 --- a/plinth/modules/coturn/__init__.py +++ b/plinth/modules/coturn/__init__.py @@ -115,8 +115,8 @@ def get_domain(): def get_domains(): """Return a list with the configured domains.""" - setup_helper = globals()['setup_helper'] - if setup_helper.get_state() == 'needs-setup': + # If not installed, return empty. But work while installing too. + if not pathlib.Path('/etc/coturn/freedombox.conf').exists(): return [] domain = get_domain()