mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-23 09:54:19 +03:00
Ensure ami_remove_timer_event code doesn't get executed unless necessary.
svn path=/trunk/netsurf/; revision=10509
This commit is contained in:
parent
c65ca7035c
commit
a93fa04a93
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user