diff options
| author | 2024-09-25 01:32:10 +0200 | |
|---|---|---|
| committer | 2024-09-25 01:32:10 +0200 | |
| commit | d55c5f8742564a87f497a33324d12c873efa60c6 (patch) | |
| tree | 3fc44b09058518089138373a0620b8bd249cbc98 /src/libirecovery.c | |
| 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/libirecovery.c')
| -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) | |||
| 2515 | { | 2515 | { |
| 2516 | irecv_device_event_t dev_event; | 2516 | irecv_device_event_t dev_event; |
| 2517 | dev_event.type = IRECV_DEVICE_REMOVE; | 2517 | dev_event.type = IRECV_DEVICE_REMOVE; |
| 2518 | dev_event.mode = 0; | 2518 | dev_event.mode = devinfo->mode; |
| 2519 | dev_event.device_info = &(devinfo->device_info); | 2519 | dev_event.device_info = &(devinfo->device_info); |
| 2520 | mutex_lock(&listener_mutex); | 2520 | mutex_lock(&listener_mutex); |
| 2521 | FOREACH(struct irecv_device_event_context* context, &listeners) { | 2521 | FOREACH(struct irecv_device_event_context* context, &listeners) { |
