diff options
| author | 2009-09-12 19:46:56 +0200 | |
|---|---|---|
| committer | 2009-09-12 19:46:56 +0200 | |
| commit | 3ce5d8e486195b62385b4d449cd7b63c33d81db4 (patch) | |
| tree | f0592ddd504030b28db693d98aa9c20f43abbfb8 /src | |
| parent | e617375c3424ef341a172d05c58cfc4335049c44 (diff) | |
| download | libimobiledevice-3ce5d8e486195b62385b4d449cd7b63c33d81db4.tar.gz libimobiledevice-3ce5d8e486195b62385b4d449cd7b63c33d81db4.tar.bz2 | |
Fix iphone_device_recv making receive operational again
Diffstat (limited to 'src')
| -rw-r--r-- | src/iphone.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/iphone.c b/src/iphone.c index 80e796b..eabe6cd 100644 --- a/src/iphone.c +++ b/src/iphone.c | |||
| @@ -310,6 +310,7 @@ iphone_error_t iphone_device_recv_timeout(iphone_connection_t connection, char * | |||
| 310 | log_debug_msg("%s: ERROR: usbmuxd_recv_timeout returned %d (%s)\n", __func__, res, strerror(-res)); | 310 | log_debug_msg("%s: ERROR: usbmuxd_recv_timeout returned %d (%s)\n", __func__, res, strerror(-res)); |
| 311 | return IPHONE_E_UNKNOWN_ERROR; | 311 | return IPHONE_E_UNKNOWN_ERROR; |
| 312 | } | 312 | } |
| 313 | return IPHONE_E_SUCCESS; | ||
| 313 | } else { | 314 | } else { |
| 314 | log_debug_msg("%s: Unknown connection type %d\n", __func__, connection->type); | 315 | log_debug_msg("%s: Unknown connection type %d\n", __func__, connection->type); |
| 315 | } | 316 | } |
| @@ -341,6 +342,8 @@ iphone_error_t iphone_device_recv(iphone_connection_t connection, char *data, ui | |||
| 341 | log_debug_msg("%s: ERROR: usbmuxd_recv returned %d (%s)\n", __func__, res, strerror(-res)); | 342 | log_debug_msg("%s: ERROR: usbmuxd_recv returned %d (%s)\n", __func__, res, strerror(-res)); |
| 342 | return IPHONE_E_UNKNOWN_ERROR; | 343 | return IPHONE_E_UNKNOWN_ERROR; |
| 343 | } | 344 | } |
| 345 | |||
| 346 | return IPHONE_E_SUCCESS; | ||
| 344 | } else { | 347 | } else { |
| 345 | log_debug_msg("%s: Unknown connection type %d\n", __func__, connection->type); | 348 | log_debug_msg("%s: Unknown connection type %d\n", __func__, connection->type); |
| 346 | } | 349 | } |
