- bug fix

This commit is contained in:
zolliker
2011-03-25 14:22:58 +00:00
parent 2efb59c7f0
commit ce77a0b2f0

View File

@ -97,7 +97,7 @@ static double nextTime(double due,
static DevAction *DevNextAction(DevSer * devser)
{
/* the action queue is primarily ordered by priority (high prioirty first),
/* the action queue is primarily ordered by priority (high priority first),
* within one priority by usage (last used action at end)
*/
DevPrio prio;
@ -312,8 +312,12 @@ void DevDebugMode(DevSer * devser, int steps)
static void DevReset(DevSer * devser)
{
/*
DevFreeActionList(devser->actions);
devser->actions = NULL;
*/
DevFreeActionList(devser->toKill);
devser->toKill = NULL;
if (devser->killCurrent) {
if (devser->current->kill != NULL) {
devser->current->kill(devser->current);
@ -397,6 +401,7 @@ int DevSchedule(DevSer * devser, void *actionData,
prio = NumberOfPRIO - 1;
}
/* find similar action and the point, where we have to insert */
for (ptr2prev = &devser->actions, action = devser->actions;
action != NULL;
action = action->next) {