diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-11-22 16:37:49 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-11-22 16:37:49 +0000 |
commit | 9e98d775318863bfe7a0e1e3274ea969a027728c (patch) | |
tree | 2b42dcfeceba5179c18199d32cc254c009ebde04 | |
parent | 186e1f4ee32c518a599038e15e4b209864478db7 (diff) | |
download | netsurf-9e98d775318863bfe7a0e1e3274ea969a027728c.tar.gz netsurf-9e98d775318863bfe7a0e1e3274ea969a027728c.tar.bz2 |
Reply to the timer before running the scheduled task.
-rwxr-xr-x | amiga/schedule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/amiga/schedule.c b/amiga/schedule.c index 607c3d8e5..cb26b3415 100755 --- a/amiga/schedule.c +++ b/amiga/schedule.c @@ -434,8 +434,11 @@ static int32 ami_scheduler_process(STRPTR args, int32 length, APTR execbase) if(signal & timersig) { while((timermsg = (struct TimerRequest *)GetMsg(timermsgport))) { + /* reply first, as we don't need the message contents and + * it crashes if we reply after schedule_run has executed. + */ + ReplyMsg((struct Message *)timermsg); ami_scheduler_run(nsmsgport); - //ReplyMsg((struct Message *)timermsg); /* \todo why does this crash? */ } } |