Commit 67dd879f authored by Vincent Untz's avatar Vincent Untz

gsm: Never mark as handled the Disconnected signal from dbus

Disconnected is emitted when dbus is quitting. And all the dbus filters
might be interested in this signal, so never mark it as handled when we
look at it.
parent 81bff9b4
......@@ -152,7 +152,8 @@ gsm_consolekit_dbus_filter (DBusConnection *connection,
DBUS_INTERFACE_LOCAL, "Disconnected") &&
strcmp (dbus_message_get_path (message), DBUS_PATH_LOCAL) == 0) {
gsm_consolekit_free_dbus (manager);
return DBUS_HANDLER_RESULT_HANDLED;
/* let other filters get this disconnected signal, so that they
* can handle it too */
}
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
......
......@@ -228,7 +228,8 @@ gsm_shell_bus_filter (DBusConnection *connection,
DBUS_INTERFACE_LOCAL, "Disconnected") &&
strcmp (dbus_message_get_path (message), DBUS_PATH_LOCAL) == 0) {
gsm_shell_disconnect_from_bus (shell);
return DBUS_HANDLER_RESULT_HANDLED;
/* let other filters get this disconnected signal, so that they
* can handle it too */
}
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
......
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