summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
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;
}