forked from len0rd/rockbox
usb: add forgotten break in usb switch, this could lead to unwanted code being execute like USB_QUIT to be sent on hotswap !
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30843 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d3ad36f6e7
commit
320c3c2ca9
1 changed files with 1 additions and 1 deletions
|
@ -506,6 +506,7 @@ static void usb_thread(void)
|
||||||
case USB_REENABLE:
|
case USB_REENABLE:
|
||||||
#endif
|
#endif
|
||||||
usb_handle_hotswap(ev.id);
|
usb_handle_hotswap(ev.id);
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* FIREWIRE */
|
/* FIREWIRE */
|
||||||
|
@ -738,7 +739,6 @@ void usb_close(void)
|
||||||
tick_remove_task(usb_tick);
|
tick_remove_task(usb_tick);
|
||||||
#endif
|
#endif
|
||||||
usb_monitor_enabled = false;
|
usb_monitor_enabled = false;
|
||||||
|
|
||||||
queue_post(&usb_queue, USB_QUIT, 0);
|
queue_post(&usb_queue, USB_QUIT, 0);
|
||||||
thread_wait(thread);
|
thread_wait(thread);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue