- 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)
|
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)
|
* within one priority by usage (last used action at end)
|
||||||
*/
|
*/
|
||||||
DevPrio prio;
|
DevPrio prio;
|
||||||
@ -312,8 +312,12 @@ void DevDebugMode(DevSer * devser, int steps)
|
|||||||
|
|
||||||
static void DevReset(DevSer * devser)
|
static void DevReset(DevSer * devser)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
DevFreeActionList(devser->actions);
|
DevFreeActionList(devser->actions);
|
||||||
|
devser->actions = NULL;
|
||||||
|
*/
|
||||||
DevFreeActionList(devser->toKill);
|
DevFreeActionList(devser->toKill);
|
||||||
|
devser->toKill = NULL;
|
||||||
if (devser->killCurrent) {
|
if (devser->killCurrent) {
|
||||||
if (devser->current->kill != NULL) {
|
if (devser->current->kill != NULL) {
|
||||||
devser->current->kill(devser->current);
|
devser->current->kill(devser->current);
|
||||||
@ -397,6 +401,7 @@ int DevSchedule(DevSer * devser, void *actionData,
|
|||||||
prio = NumberOfPRIO - 1;
|
prio = NumberOfPRIO - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* find similar action and the point, where we have to insert */
|
||||||
for (ptr2prev = &devser->actions, action = devser->actions;
|
for (ptr2prev = &devser->actions, action = devser->actions;
|
||||||
action != NULL;
|
action != NULL;
|
||||||
action = action->next) {
|
action = action->next) {
|
||||||
|
Reference in New Issue
Block a user