summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-03-13 02:47:18 +0100
committerGravatar Nikias Bassen2014-03-13 02:47:18 +0100
commit13b7851cc3b21cfb9cd06bbd9174a10b68106669 (patch)
treeb51fcb4345c0a3ea373d7a7cdbe67aeb5bafddf4 /src/device.c
parent592782336ebb56fa31148f8c8b29c797c82185e9 (diff)
downloadusbmuxd-13b7851cc3b21cfb9cd06bbd9174a10b68106669.tar.gz
usbmuxd-13b7851cc3b21cfb9cd06bbd9174a10b68106669.tar.bz2
device: suppress 'error reading from client (0)' which is not actually an error
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
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;
}