tagcache: fix queue operation, it should be queue_peek.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26233 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2010-05-21 15:12:07 +00:00
parent d7244926f5
commit e24dd5ff98

View file

@ -3714,14 +3714,14 @@ static bool check_event_queue(void)
{ {
struct queue_event ev; struct queue_event ev;
queue_wait_w_tmo(&tagcache_queue, &ev, 0); if(!queue_peek(&tagcache_queue, &ev))
return false;
switch (ev.id) switch (ev.id)
{ {
case Q_STOP_SCAN: case Q_STOP_SCAN:
case SYS_POWEROFF: case SYS_POWEROFF:
case SYS_USB_CONNECTED: case SYS_USB_CONNECTED:
/* Put the event back into the queue. */
queue_post(&tagcache_queue, ev.id, ev.data);
return true; return true;
} }