mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-04 06:02:40 +02:00
2022-05-04 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdcatchd(8) that could cause a segfault when executing one shot events. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
cff89ee87f
commit
e53242c53a
@ -23050,3 +23050,6 @@
|
|||||||
* Fixed a bug that broke the 'make rpm' target.
|
* Fixed a bug that broke the 'make rpm' target.
|
||||||
2022-05-04 Fred Gleason <fredg@paravelsystems.com>
|
2022-05-04 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Incremented the package version to v4.0.0beta3int0.
|
* Incremented the package version to v4.0.0beta3int0.
|
||||||
|
2022-05-04 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in rdcatchd(8) that could cause a segfault when
|
||||||
|
executing one shot events.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// An event timer engine.
|
// An event timer engine.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU Library General Public License
|
// it under the terms of the GNU Library General Public License
|
||||||
@ -109,7 +109,10 @@ void RDTimeEngine::StartEvent(int id)
|
|||||||
while(!then.isValid());
|
while(!then.isValid());
|
||||||
}
|
}
|
||||||
int interval=now.msecsTo(then);
|
int interval=now.msecsTo(then);
|
||||||
d_timers.value(id)->start(1+interval);
|
QTimer *timer=d_timers.value(id);
|
||||||
|
if (timer!=NULL) { // In case this is a one-shot
|
||||||
|
d_timers.value(id)->start(1+interval);
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
printf("ID %d set interval %d mS [%s] for scheduled time %s\n",id,interval,
|
printf("ID %d set interval %d mS [%s] for scheduled time %s\n",id,interval,
|
||||||
QTime(0,0,0).addMSecs(interval).toString("hh:mm:ss.zzz").toUtf8().constData(),
|
QTime(0,0,0).addMSecs(interval).toString("hh:mm:ss.zzz").toUtf8().constData(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user