Always wait for at least some time, as it's ambiguous as to whether a 0.0s timerequest is valid.

This commit is contained in:
Chris Young 2016-08-10 00:21:52 +01:00
parent cd48860207
commit 4b14f9ff37

View File

@ -301,6 +301,8 @@ nserror ami_schedule(int t, void (*callback)(void *p), void *p)
{
struct nscallback *nscb;
if(t == 0) t = 1;
LOG("Scheduling callback %p with arg %p at time %d", callback, p, t);
if(schedule_list == NULL) return NSERROR_INIT_FAILED;