chiark / gitweb /
Use bus_maybe_send_reply() where applicable
[elogind.git] / src / locale / localed.c
index 4f85b8b..60083b7 100644 (file)
@@ -1277,7 +1277,7 @@ static DBusHandlerResult locale_message_handler(
         if (!(reply = dbus_message_new_method_return(message)))
                 goto oom;
 
-        if (!dbus_connection_send(connection, reply, NULL))
+        if (!bus_maybe_send_reply(connection, message, reply))
                 goto oom;
 
         dbus_message_unref(reply);