summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9e487fe..f08a196 100644
--- a/main.c
+++ b/main.c
@@ -738,9 +738,11 @@ leave:
}
free(device_use_list);
device_use_list = newlist;
+ device_use_count--;
} else {
free(device_use_list);
device_use_list = NULL;
+ device_use_count = 0;
}
pthread_mutex_unlock(&usbmux_mutex);
}