summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Dave Nicolson2023-11-16 15:23:56 +0100
committerGravatar Nikias Bassen2023-12-16 00:30:06 +0100
commit545202420f27f0558c4a183f17ea06c46a397de9 (patch)
tree53c9b63f672f024f911cf8dcfa1f8aa80f97d718 /src
parent9f29d3beef5c93c4e962d35c9645bd99df43a959 (diff)
downloadlibimobiledevice-545202420f27f0558c4a183f17ea06c46a397de9.tar.gz
libimobiledevice-545202420f27f0558c4a183f17ea06c46a397de9.tar.bz2
sbservices: Read setIconState response
This allows the same connection to be used again after sbservices_set_icon_state is called. Fixes #928.
Diffstat (limited to 'src')
-rw-r--r--src/sbservices.c5
1 files changed, 4 insertions, 1 deletions
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);