From 9e98d775318863bfe7a0e1e3274ea969a027728c Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 22 Nov 2014 16:37:49 +0000 Subject: Reply to the timer before running the scheduled task. --- amiga/schedule.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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? */ } } -- cgit v1.2.3