Diff between 5783e002459bfb51488c6180c2e88b77c2ca2cbd and e25fd4d869667fac09db80fe40daf1f46bb9d673

Changed Files

File Additions Deletions Status
src/gatt-client.c +3 -3 modified

Full Patch

diff --git a/src/gatt-client.c b/src/gatt-client.c
index 399133a..6c10a82 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -946,11 +946,11 @@ static DBusMessage *characteristic_write_value(DBusConnection *conn,
 		goto fail;
 
 	supported = true;
-	chrc->write_id = bt_gatt_client_write_without_response(gatt,
+
+	if (bt_gatt_client_write_without_response(gatt,
 					chrc->value_handle,
 					chrc->props & BT_GATT_CHRC_PROP_AUTH,
-					value, value_len);
-	if (chrc->write_id)
+					value, value_len))
 		return dbus_message_new_method_return(msg);
 
 fail: