From 92ae9155a76d07d8b7a15bd73520afef893b4c21 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sat, 16 Sep 2006 18:30:10 +0000 Subject: Don't remove the thread twice. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10960 a1c6a512-1295-4272-9138-f99709370657 --- firmware/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/thread.c') diff --git a/firmware/thread.c b/firmware/thread.c index e4dcbbcf9a..aeedbac349 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -671,8 +671,8 @@ void remove_thread(struct thread_entry *thread) if (thread == cores[CURRENT_CORE].sleeping) remove_from_list(&cores[CURRENT_CORE].sleeping, thread); - - remove_from_list(NULL, thread); + else + remove_from_list(NULL, thread); } #ifdef HAVE_PRIORITY_SCHEDULING -- cgit v1.2.3