diff options
| author | 2026-10-07 17:09:50 +0200 | |
|---|---|---|
| committer | 2026-11-22 18:20:36 +0100 | |
| commit | 7bcdc4104da6db55af3275da3e0ec86996c0f6ab (patch) | |
| tree | ff29de2d9e07d077562af0a74496df8a34d43981 /src/client.c | |
| parent | 8fbdb7a82034c3c96c0b7547f54302e2a5978465 (diff) | |
| download | usbmuxd-7bcdc4104da6db55af3275da3e0ec86996c0f6ab.tar.gz usbmuxd-7bcdc4104da6db55af3275da3e0ec86996c0f6ab.tar.bz2 | |
preflight: serialize device visibility and notifications
Publish device visibility and the attached notification under
device_list_mutex, then acquire client_list_mutex in the same order as device
removal.
Do not notify clients if preflight completes after the device has disappeared.
Assisted-by: OpenAI Codex
Diffstat (limited to 'src/client.c')
| -rw-r--r-- | src/client.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c index 2ac04bf..96ab507 100644 --- a/src/client.c +++ b/src/client.c @@ -988,7 +988,6 @@ void client_device_add(struct device_info *dev) { mutex_lock(&client_list_mutex); usbmuxd_log(LL_DEBUG, "client_device_add: id %d, location 0x%x, serial %s", dev->id, dev->location, dev->serial); - device_set_visible(dev->id); FOREACH(struct mux_client *client, &client_list) { if(client->state == CLIENT_LISTEN) send_device_add(client, dev); |
