diff options
Diffstat (limited to 'src/property_list_service.c')
-rw-r--r-- | src/property_list_service.c | 5 |
1 files changed, 4 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 return PROPERTY_LIST_SERVICE_E_INVALID_ARG; } - service_receive_with_timeout(client->parent, (char*)&pktlen, sizeof(pktlen), &bytes, timeout); + service_error_t serr = service_receive_with_timeout(client->parent, (char*)&pktlen, sizeof(pktlen), &bytes, timeout); + if ((serr == SERVICE_E_SUCCESS) && (bytes == 0)) { + return PROPERTY_LIST_SERVICE_E_TIMEOUT; + } debug_info("initial read=%i", bytes); if (bytes < 4) { debug_info("initial read failed!"); |