diff options
| author | 2023-11-16 15:23:56 +0100 | |
|---|---|---|
| committer | 2023-12-16 00:30:06 +0100 | |
| commit | 545202420f27f0558c4a183f17ea06c46a397de9 (patch) | |
| tree | 53c9b63f672f024f911cf8dcfa1f8aa80f97d718 | |
| parent | 9f29d3beef5c93c4e962d35c9645bd99df43a959 (diff) | |
| download | libimobiledevice-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.
| -rw-r--r-- | src/sbservices.c | 5 | 
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);  | 
