Fix serious bug in GTIMER.
parent
9ddf7c4284
commit
476d11d599
|
@ -196,7 +196,7 @@ void gtimerStop(GTimer *pt) {
|
||||||
gfxMutexEnter(&mutex);
|
gfxMutexEnter(&mutex);
|
||||||
if (pt->flags & GTIMER_FLG_SCHEDULED) {
|
if (pt->flags & GTIMER_FLG_SCHEDULED) {
|
||||||
// Cancel it!
|
// Cancel it!
|
||||||
if (pt->next == pt->prev)
|
if (pt->next == pt)
|
||||||
pTimerHead = 0;
|
pTimerHead = 0;
|
||||||
else {
|
else {
|
||||||
pt->next->prev = pt->prev;
|
pt->next->prev = pt->prev;
|
||||||
|
|
Loading…
Reference in New Issue