diff options
| author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-16 18:30:10 +0000 |
|---|---|---|
| committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-16 18:30:10 +0000 |
| commit | 92ae9155a76d07d8b7a15bd73520afef893b4c21 (patch) | |
| tree | e7f34577a66d58a21120b8055c0f93d7243e66f7 /firmware/thread.c | |
| parent | 610190a04e52944bb2818882af937ce175f45992 (diff) | |
| download | rockbox-92ae9155a76d07d8b7a15bd73520afef893b4c21.zip rockbox-92ae9155a76d07d8b7a15bd73520afef893b4c21.tar.gz rockbox-92ae9155a76d07d8b7a15bd73520afef893b4c21.tar.bz2 rockbox-92ae9155a76d07d8b7a15bd73520afef893b4c21.tar.xz | |
Don't remove the thread twice.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10960 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
| -rw-r--r-- | firmware/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index e4dcbbc..aeedbac 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 |