diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2010-05-21 15:12:07 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2010-05-21 15:12:07 +0000 |
commit | e24dd5ff98d63e81b4894b2ba06375f90105b373 (patch) | |
tree | e910536211507b84ce9f5414e5e8ebfa618250bc /apps/tagcache.c | |
parent | d7244926f5946a3b8ac2ef83953d0e423b2def2a (diff) |
tagcache: fix queue operation, it should be queue_peek.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26233 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 6 |
1 files 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; } |