chiark / gitweb /
Use bus_maybe_send_reply() where applicable
[elogind.git] / src / login / logind-session-dbus.c
index ef73cd434abbdd1e5e31fcc69ffe1516aa938b51..c4db3155308196a71739ab77fd014e733e01892b 100644 (file)
@@ -412,7 +412,7 @@ static DBusHandlerResult session_message_dispatch(
         }
 
         if (reply) {
-                if (!dbus_connection_send(connection, reply, NULL))
+                if (!bus_maybe_send_reply(connection, message, reply))
                         goto oom;
 
                 dbus_message_unref(reply);