Last active
August 29, 2015 14:00
-
-
Save brianairb/11096061 to your computer and use it in GitHub Desktop.
usbmuxd patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/device.c b/src/device.c | |
index e36509e..ea99d63 100644 | |
--- a/src/device.c | |
+++ b/src/device.c | |
@@ -441,7 +441,7 @@ void device_client_process(int device_id, struct mux_client *client, short event | |
memmove(conn->ib_buf, conn->ib_buf + size, conn->ib_size); | |
} | |
} | |
- if(events & POLLIN) { | |
+ if((events & POLLIN) && conn->sendable > 0) { | |
// There is inbound trafic on the client socket, | |
// convert it to tcp and send to the device | |
size = client_read(conn->client, conn->ob_buf, conn->sendable); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment