summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 0b72c62..aac40b1 100644
--- a/src/device.c
+++ b/src/device.c
@@ -549,6 +549,7 @@ void device_abort_connect(int device_id, struct mux_client *client)
549{ 549{
550 struct mux_connection *conn = get_mux_connection(device_id, client); 550 struct mux_connection *conn = get_mux_connection(device_id, client);
551 if (conn) { 551 if (conn) {
552 conn->client = NULL;
552 connection_teardown(conn); 553 connection_teardown(conn);
553 } else { 554 } else {
554 usbmuxd_log(LL_WARNING, "Attempted to abort for nonexistent connection for device %d", device_id); 555 usbmuxd_log(LL_WARNING, "Attempted to abort for nonexistent connection for device %d", device_id);