diff options
author | Nikias Bassen | 2014-03-13 02:47:18 +0100 |
---|---|---|
committer | Nikias Bassen | 2014-03-13 02:47:18 +0100 |
commit | 13b7851cc3b21cfb9cd06bbd9174a10b68106669 (patch) | |
tree | b51fcb4345c0a3ea373d7a7cdbe67aeb5bafddf4 | |
parent | 592782336ebb56fa31148f8c8b29c797c82185e9 (diff) | |
download | usbmuxd-13b7851cc3b21cfb9cd06bbd9174a10b68106669.tar.gz usbmuxd-13b7851cc3b21cfb9cd06bbd9174a10b68106669.tar.bz2 |
device: suppress 'error reading from client (0)' which is not actually an error
-rw-r--r-- | src/device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index d2da51a..ce0f28f 100644 --- a/src/device.c +++ b/src/device.c @@ -405,7 +405,9 @@ void device_client_process(int device_id, struct mux_client *client, short event if(events & POLLIN) { size = client_read(conn->client, conn->ob_buf, conn->sendable); if(size <= 0) { - usbmuxd_log(LL_DEBUG, "error reading from client (%d)", size); + if (size < 0) { + usbmuxd_log(LL_DEBUG, "error reading from client (%d)", size); + } connection_teardown(conn); return; } |