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)
{
struct mux_connection *conn = get_mux_connection(device_id, client);
if (conn) {
+ conn->client = NULL;
connection_teardown(conn);
} else {
usbmuxd_log(LL_WARNING, "Attempted to abort for nonexistent connection for device %d", device_id);