diff options
| author | 2010-12-28 23:20:29 +0100 | |
|---|---|---|
| committer | 2010-12-28 23:20:29 +0100 | |
| commit | 72e1427dde744addb0e5aeca364ec43ddf954895 (patch) | |
| tree | a28dde07d0672dc55163549b5e60cf83db3b4278 | |
| parent | 6a561c6230e4132cdc99669fafda6eee59e87bc3 (diff) | |
| download | libirecovery-72e1427dde744addb0e5aeca364ec43ddf954895.tar.gz libirecovery-72e1427dde744addb0e5aeca364ec43ddf954895.tar.bz2 | |
OPTIM: faster console reading
| -rw-r--r-- | libirecovery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libirecovery.c b/libirecovery.c index c9e5949..58ef080 100644 --- a/libirecovery.c +++ b/libirecovery.c | |||
| @@ -762,10 +762,11 @@ irecv_error_t irecv_receive(irecv_client_t client) { | |||
| 762 | return IRECV_E_SUCCESS; | 762 | return IRECV_E_SUCCESS; |
| 763 | } | 763 | } |
| 764 | } | 764 | } |
| 765 | if (bytes < BUFFER_SIZE) break; | ||
| 765 | } else break; | 766 | } else break; |
| 766 | } | 767 | } |
| 767 | 768 | ||
| 768 | // pod2g 2010-12-28: MacOSX need a reset if read times out | 769 | // pod2g 2010-12-28: MacOSX need a reset if read times out, also the reset seems to improve stability when switching interfaces |
| 769 | irecv_reset(client); | 770 | irecv_reset(client); |
| 770 | irecv_set_interface(client, 1, 1); | 771 | irecv_set_interface(client, 1, 1); |
| 771 | return IRECV_E_SUCCESS; | 772 | return IRECV_E_SUCCESS; |
