Skip to content

Commit

Permalink
Make sure IRECV_DEVICE_REMOVE event has the mode set the device was in
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Sep 24, 2024
1 parent 3eb4fbb commit d55c5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libirecovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d55c5f8

Please sign in to comment.