Add sender to invocation info 15/283915/1
authorWootak Jung <wootak.jung@samsung.com>
Mon, 7 Nov 2022 06:27:13 +0000 (15:27 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 7 Nov 2022 06:27:13 +0000 (15:27 +0900)
Change-Id: I7b7939b0407cf3c212ec8574259876c53196a2c1
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-service/services/bt-request-handler.c

index 55d8a06bd9a4cd35998a443fa335ede2c8afe986..1733cf8f4c4a3f093501470fb1f8d881eb543a5b 100644 (file)
@@ -4499,6 +4499,7 @@ normal:
                socket_fd = _bt_l2cap_le_socket_listen(psm, true);
                if (socket_fd > 0) {
                        result = BLUETOOTH_ERROR_NONE;
+                       sender = (char *)g_dbus_method_invocation_get_sender(context);
                        _bt_save_invocation_context(context,
                                        result, sender, function_name, NULL);
                } else {
@@ -4515,6 +4516,7 @@ normal:
                socket_fd = _bt_l2cap_le_socket_listen(psm, false);
                if (socket_fd > 0) {
                        result = BLUETOOTH_ERROR_NONE;
+                       sender = (char *)g_dbus_method_invocation_get_sender(context);
                        _bt_save_invocation_context(context, result,
                                        sender, function_name, NULL);
                } else {