diff options
author | Nikias Bassen | 2012-04-08 11:17:07 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-04-08 11:17:07 +0200 |
commit | e284960e375dcce3032e953c372f8f25c5103dc2 (patch) | |
tree | 9eb25ab644ad2bae49ca981e2dd1d73609754d5d | |
parent | df808a678a28bdc11c6ffdea34a453ef66466a30 (diff) | |
download | libimobiledevice-e284960e375dcce3032e953c372f8f25c5103dc2.tar.gz libimobiledevice-e284960e375dcce3032e953c372f8f25c5103dc2.tar.bz2 |
idevicesyslog: fix bug causing the connection to close after timeout
-rw-r--r-- | tools/idevicesyslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 227bf3d..2adf327 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) while (!quit_flag) { char c; uint32_t bytes = 0; - if ((idevice_connection_receive(conn, &c, 1, &bytes) < 0) || (bytes != 1)) { + if (idevice_connection_receive(conn, &c, 1, &bytes) < 0) { fprintf(stderr, "Error receiving data. Exiting...\n"); break; } |