summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-26 23:44:13 +0200
committerGravatar Martin Szulecki2013-09-26 23:44:13 +0200
commit55a44b7ed78cad9f236b50ba67bd143dd5757bbd (patch)
tree30bf0c062be9f4d75459e911705186e5939f6012 /src
parent3c7c6e5fb2b50d60774c032afe86f4b8fe753dbf (diff)
downloadlibirecovery-55a44b7ed78cad9f236b50ba67bd143dd5757bbd.tar.gz
libirecovery-55a44b7ed78cad9f236b50ba67bd143dd5757bbd.tar.bz2
Reduce timeout for receive loop to 500ms for quicker response
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index c564ecb..6a8f470 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1054,7 +1054,7 @@ irecv_error_t irecv_receive(irecv_client_t client) {
if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE;
int bytes = 0;
- while (irecv_usb_bulk_transfer(client, 0x81, (unsigned char*) buffer, BUFFER_SIZE, &bytes, 1000) == 0) {
+ while (irecv_usb_bulk_transfer(client, 0x81, (unsigned char*) buffer, BUFFER_SIZE, &bytes, 500) == 0) {
if (bytes > 0) {
if (client->received_callback != NULL) {
irecv_event_t event;