From 545202420f27f0558c4a183f17ea06c46a397de9 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Thu, 16 Nov 2023 15:23:56 +0100 Subject: sbservices: Read setIconState response This allows the same connection to be used again after sbservices_set_icon_state is called. Fixes #928. --- src/sbservices.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sbservices.c b/src/sbservices.c index ccb7c4b..c7ee911 100644 --- a/src/sbservices.c +++ b/src/sbservices.c @@ -172,7 +172,10 @@ LIBIMOBILEDEVICE_API sbservices_error_t sbservices_set_icon_state(sbservices_cli if (res != SBSERVICES_E_SUCCESS) { debug_info("could not send plist, error %d", res); } - /* NO RESPONSE */ + + uint32_t bytes = 0; + service_receive_with_timeout(client->parent->parent, malloc(4), 4, &bytes, 2000); + debug_info("setIconState response: %u", bytes); if (dict) { plist_free(dict); -- cgit v1.1-32-gdbae