summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-09-12 19:46:56 +0200
committerGravatar Martin Szulecki2009-09-12 19:46:56 +0200
commit3ce5d8e486195b62385b4d449cd7b63c33d81db4 (patch)
treef0592ddd504030b28db693d98aa9c20f43abbfb8
parente617375c3424ef341a172d05c58cfc4335049c44 (diff)
downloadlibimobiledevice-3ce5d8e486195b62385b4d449cd7b63c33d81db4.tar.gz
libimobiledevice-3ce5d8e486195b62385b4d449cd7b63c33d81db4.tar.bz2
Fix iphone_device_recv making receive operational again
-rw-r--r--src/iphone.c3
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 *
log_debug_msg("%s: ERROR: usbmuxd_recv_timeout returned %d (%s)\n", __func__, res, strerror(-res));
return IPHONE_E_UNKNOWN_ERROR;
}
+ return IPHONE_E_SUCCESS;
} else {
log_debug_msg("%s: Unknown connection type %d\n", __func__, connection->type);
}
@@ -341,6 +342,8 @@ iphone_error_t iphone_device_recv(iphone_connection_t connection, char *data, ui
log_debug_msg("%s: ERROR: usbmuxd_recv returned %d (%s)\n", __func__, res, strerror(-res));
return IPHONE_E_UNKNOWN_ERROR;
}
+
+ return IPHONE_E_SUCCESS;
} else {
log_debug_msg("%s: Unknown connection type %d\n", __func__, connection->type);
}