From e24dd5ff98d63e81b4894b2ba06375f90105b373 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 21 May 2010 15:12:07 +0000 Subject: [PATCH] tagcache: fix queue operation, it should be queue_peek. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26233 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/tagcache.c b/apps/tagcache.c index affa75db05..f4d3753768 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -3714,14 +3714,14 @@ static bool check_event_queue(void) { struct queue_event ev; - queue_wait_w_tmo(&tagcache_queue, &ev, 0); + if(!queue_peek(&tagcache_queue, &ev)) + return false; + switch (ev.id) { case Q_STOP_SCAN: case SYS_POWEROFF: case SYS_USB_CONNECTED: - /* Put the event back into the queue. */ - queue_post(&tagcache_queue, ev.id, ev.data); return true; }