hw: fix bug in Kernel::Thread::crash

ref #589
This commit is contained in:
Martin Stein 2013-09-18 12:48:22 +02:00 committed by Norman Feske
parent 00f16be122
commit c3be0b417a

View File

@ -290,7 +290,7 @@ class Kernel::Thread
*/
void crash()
{
cpu_scheduler()->remove(this);
if (_state == SCHEDULED) { cpu_scheduler()->remove(this); }
_state = CRASHED;
}