diff options
Diffstat (limited to 'src/usbmux.c')
| -rw-r--r-- | src/usbmux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usbmux.c b/src/usbmux.c index 474b13e..bdeea09 100644 --- a/src/usbmux.c +++ b/src/usbmux.c | |||
| @@ -112,7 +112,12 @@ void mux_close_connection(iPhone *phone, usbmux_tcp_header *connection) { | |||
| 112 | int bytes = 0; | 112 | int bytes = 0; |
| 113 | 113 | ||
| 114 | bytes = usb_bulk_write(phone->device, BULKOUT, (char*)connection, sizeof(*connection), 800); | 114 | bytes = usb_bulk_write(phone->device, BULKOUT, (char*)connection, sizeof(*connection), 800); |
| 115 | if(debug && bytes < 0) | ||
| 116 | printf("mux_close_connection(): when writing, libusb gave me the error: %s\n", usb_strerror()); | ||
| 117 | |||
| 115 | bytes = usb_bulk_read(phone->device, BULKIN, (char*)connection, sizeof(*connection), 800); | 118 | bytes = usb_bulk_read(phone->device, BULKIN, (char*)connection, sizeof(*connection), 800); |
| 119 | if(debug && bytes < 0) | ||
| 120 | printf("get_iPhone(): when reading, libusb gave me the error: %s\n", usb_strerror()); | ||
| 116 | 121 | ||
| 117 | free(connection); | 122 | free(connection); |
| 118 | } | 123 | } |
