diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/property_list_service.c | 5 | ||||
| -rw-r--r-- | src/property_list_service.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/property_list_service.c b/src/property_list_service.c index f1c3f86..28739c7 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c | |||
| @@ -223,7 +223,10 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis | |||
| 223 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 223 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
| 224 | } | 224 | } |
| 225 | 225 | ||
| 226 | service_receive_with_timeout(client->parent, (char*)&pktlen, sizeof(pktlen), &bytes, timeout); | 226 | service_error_t serr = service_receive_with_timeout(client->parent, (char*)&pktlen, sizeof(pktlen), &bytes, timeout); |
| 227 | if ((serr == SERVICE_E_SUCCESS) && (bytes == 0)) { | ||
| 228 | return PROPERTY_LIST_SERVICE_E_TIMEOUT; | ||
| 229 | } | ||
| 227 | debug_info("initial read=%i", bytes); | 230 | debug_info("initial read=%i", bytes); |
| 228 | if (bytes < 4) { | 231 | if (bytes < 4) { |
| 229 | debug_info("initial read failed!"); | 232 | debug_info("initial read failed!"); |
diff --git a/src/property_list_service.h b/src/property_list_service.h index c18fd76..84053e0 100644 --- a/src/property_list_service.h +++ b/src/property_list_service.h | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | #define PROPERTY_LIST_SERVICE_E_PLIST_ERROR -2 | 32 | #define PROPERTY_LIST_SERVICE_E_PLIST_ERROR -2 |
| 33 | #define PROPERTY_LIST_SERVICE_E_MUX_ERROR -3 | 33 | #define PROPERTY_LIST_SERVICE_E_MUX_ERROR -3 |
| 34 | #define PROPERTY_LIST_SERVICE_E_SSL_ERROR -4 | 34 | #define PROPERTY_LIST_SERVICE_E_SSL_ERROR -4 |
| 35 | #define PROPERTY_LIST_SERVICE_E_TIMEOUT -5 | ||
| 35 | 36 | ||
| 36 | #define PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR -256 | 37 | #define PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR -256 |
| 37 | 38 | ||
