Commit 1bafe1e6 authored by segfault's avatar segfault

Emit PropertiesChanged signal for connection info when service installed

parent f2c9c96e
......@@ -144,9 +144,9 @@ class OnionService(DBusObject, metaclass=abc.ABCMeta):
self.TransactionStatus = _("Configuring options")
self.Status = Status.STOPPED
self.IsInstalled = True
except Exception:
logger.warning("Handling error in service.Install")
self.Status = Status.ERROR
......@@ -448,6 +448,15 @@ class OnionService(DBusObject, metaclass=abc.ABCMeta):
if option.reload_after_service_started:
def on_service_installed(self):
# Mark the service as successfully installed, by creating the .is_installed file
# The connection info is only available after the service is installed for the first time. This might not
# be the first time the service is installed, so this might be a "false alarm", but that shouldn't cause
# any problems.
def on_connection_info_changed(self):
self.emit_signal("org.freedesktop.DBus.Properties", "PropertiesChanged",
{"ConnectionInfo": self.ConnectionInfo}, "a{ss}")
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