- bug fix
This commit is contained in:
7
devser.c
7
devser.c
@ -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) {
|
||||
|
Reference in New Issue
Block a user