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
172 if (res != SBSERVICES_E_SUCCESS) { 172 if (res != SBSERVICES_E_SUCCESS) {
173 debug_info("could not send plist, error %d", res); 173 debug_info("could not send plist, error %d", res);
174 } 174 }
175 /* NO RESPONSE */ 175
176 uint32_t bytes = 0;
177 service_receive_with_timeout(client->parent->parent, malloc(4), 4, &bytes, 2000);
178 debug_info("setIconState response: %u", bytes);
176 179
177 if (dict) { 180 if (dict) {
178 plist_free(dict); 181 plist_free(dict);