diff options
| author | 2013-09-26 23:44:13 +0200 | |
|---|---|---|
| committer | 2013-09-26 23:44:13 +0200 | |
| commit | 55a44b7ed78cad9f236b50ba67bd143dd5757bbd (patch) | |
| tree | 30bf0c062be9f4d75459e911705186e5939f6012 /src | |
| parent | 3c7c6e5fb2b50d60774c032afe86f4b8fe753dbf (diff) | |
| download | libirecovery-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.c | 2 |
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) { | |||
| 1054 | if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE; | 1054 | if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE; |
| 1055 | 1055 | ||
| 1056 | int bytes = 0; | 1056 | int bytes = 0; |
| 1057 | while (irecv_usb_bulk_transfer(client, 0x81, (unsigned char*) buffer, BUFFER_SIZE, &bytes, 1000) == 0) { | 1057 | while (irecv_usb_bulk_transfer(client, 0x81, (unsigned char*) buffer, BUFFER_SIZE, &bytes, 500) == 0) { |
| 1058 | if (bytes > 0) { | 1058 | if (bytes > 0) { |
| 1059 | if (client->received_callback != NULL) { | 1059 | if (client->received_callback != NULL) { |
| 1060 | irecv_event_t event; | 1060 | irecv_event_t event; |
