diff options
| author | 2019-09-27 12:52:03 +0200 | |
|---|---|---|
| committer | 2019-09-27 12:52:03 +0200 | |
| commit | 8f96c52de2f9f35f361d29095190fc673db7d1c1 (patch) | |
| tree | 991b5f37ed8c504b2f77a8d0afc22182afbd340c /src/screenshotr.c | |
| parent | acf0a76be3c81a8ce69817af2b16a546a08f7ecb (diff) | |
| download | libimobiledevice-8f96c52de2f9f35f361d29095190fc673db7d1c1.tar.gz libimobiledevice-8f96c52de2f9f35f361d29095190fc673db7d1c1.tar.bz2 | |
Make sure to handle timeout errors in device link service and all depending services
Diffstat (limited to 'src/screenshotr.c')
| -rw-r--r-- | src/screenshotr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/screenshotr.c b/src/screenshotr.c index 5c4a53f..ddb9d6e 100644 --- a/src/screenshotr.c +++ b/src/screenshotr.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | * screenshotr.c | 2 | * screenshotr.c |
| 3 | * com.apple.mobile.screenshotr service implementation. | 3 | * com.apple.mobile.screenshotr service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. | 5 | * Copyright (c) 2010-2019 Nikias Bassen, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| @@ -50,6 +50,10 @@ static screenshotr_error_t screenshotr_error(device_link_service_error_t err) | |||
| 50 | return SCREENSHOTR_E_PLIST_ERROR; | 50 | return SCREENSHOTR_E_PLIST_ERROR; |
| 51 | case DEVICE_LINK_SERVICE_E_MUX_ERROR: | 51 | case DEVICE_LINK_SERVICE_E_MUX_ERROR: |
| 52 | return SCREENSHOTR_E_MUX_ERROR; | 52 | return SCREENSHOTR_E_MUX_ERROR; |
| 53 | case DEVICE_LINK_SERVICE_E_SSL_ERROR: | ||
| 54 | return SCREENSHOTR_E_SSL_ERROR; | ||
| 55 | case DEVICE_LINK_SERVICE_E_RECEIVE_TIMEOUT: | ||
| 56 | return SCREENSHOTR_E_RECEIVE_TIMEOUT; | ||
| 53 | case DEVICE_LINK_SERVICE_E_BAD_VERSION: | 57 | case DEVICE_LINK_SERVICE_E_BAD_VERSION: |
| 54 | return SCREENSHOTR_E_BAD_VERSION; | 58 | return SCREENSHOTR_E_BAD_VERSION; |
| 55 | default: | 59 | default: |
