summaryrefslogtreecommitdiffstats
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
parent592782336ebb56fa31148f8c8b29c797c82185e9 (diff)
downloadusbmuxd-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.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
405 if(events & POLLIN) { 405 if(events & POLLIN) {
406 size = client_read(conn->client, conn->ob_buf, conn->sendable); 406 size = client_read(conn->client, conn->ob_buf, conn->sendable);
407 if(size <= 0) { 407 if(size <= 0) {
408 usbmuxd_log(LL_DEBUG, "error reading from client (%d)", size); 408 if (size < 0) {
409 usbmuxd_log(LL_DEBUG, "error reading from client (%d)", size);
410 }
409 connection_teardown(conn); 411 connection_teardown(conn);
410 return; 412 return;
411 } 413 }