diff options
author | 2024-09-25 01:32:10 +0200 | |
---|---|---|
committer | 2024-09-25 01:32:10 +0200 | |
commit | d55c5f8742564a87f497a33324d12c873efa60c6 (patch) | |
tree | 3fc44b09058518089138373a0620b8bd249cbc98 /src | |
parent | 3eb4fbb0691df6ef76b4b04b9dccb9b6cf0d079d (diff) | |
download | libirecovery-d55c5f8742564a87f497a33324d12c873efa60c6.tar.gz libirecovery-d55c5f8742564a87f497a33324d12c873efa60c6.tar.bz2 |
Make sure IRECV_DEVICE_REMOVE event has the mode set the device was in
Diffstat (limited to 'src')
-rw-r--r-- | src/libirecovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index e25eb7d..ddc1946 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -2515,7 +2515,7 @@ static void _irecv_handle_device_remove(struct irecv_usb_device_info *devinfo) { irecv_device_event_t dev_event; dev_event.type = IRECV_DEVICE_REMOVE; - dev_event.mode = 0; + dev_event.mode = devinfo->mode; dev_event.device_info = &(devinfo->device_info); mutex_lock(&listener_mutex); FOREACH(struct irecv_device_event_context* context, &listeners) { |