Ensure ami_remove_timer_event code doesn't get executed unless necessary.

svn path=/trunk/netsurf/; revision=10509
This commit is contained in:
Chris Young 2010-04-28 22:19:10 +00:00
parent c65ca7035c
commit a93fa04a93

View File

@ -154,6 +154,7 @@ bool schedule_run(void)
void ami_remove_timer_event(struct nscallback *nscb)
{
#ifdef AMI_SCHEDULER_USES_TIMER
if(!nscb) return;
if(nscb->treq)
@ -164,4 +165,5 @@ void ami_remove_timer_event(struct nscallback *nscb)
WaitIO((struct IORequest *)nscb->treq);
FreeVec(nscb->treq);
}
#endif
}