summaryrefslogtreecommitdiff
path: root/frontends/amiga/schedule.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/amiga/schedule.c')
-rwxr-xr-xfrontends/amiga/schedule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/amiga/schedule.c b/frontends/amiga/schedule.c
index 6b8ee8b6e..f6145a19f 100755
--- a/frontends/amiga/schedule.c
+++ b/frontends/amiga/schedule.c
@@ -90,6 +90,10 @@ static nserror ami_schedule_add_timer_event(struct nscallback *nscb, int t)
nscb->tv.Seconds = time_us / 1000000;
nscb->tv.Microseconds = time_us % 1000000;
+ if(nscb->tv.Microseconds >= 1000000) {
+ LOG("Microseconds invalid value: %ld", nscb->tv.Microseconds);
+ }
+
GetSysTime(&tv);
AddTime(&nscb->tv,&tv); // now contains time when event occurs
@@ -350,10 +354,6 @@ void ami_schedule_handle(struct MsgPort *nsmsgport)
struct TimerRequest *timermsg;
while((timermsg = (struct TimerRequest *)GetMsg(nsmsgport))) {
- /* 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();
}
}