Fix ScriptScheduler tests

This commit is contained in:
Malin E
2021-10-25 10:49:24 +02:00
parent fc4c3f1cfa
commit d86923ebb7
2 changed files with 113 additions and 113 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ void ScriptScheduler::clearSchedule(std::optional<int> group) {
std::vector<std::string> ScriptScheduler::progressTo(double newTime) {
std::vector<std::string> result;
if (!_enabled || newTime == _currentTime) {
if (!_enabled || newTime == _currentTime || _scripts.empty()) {
// Update the new time
_currentTime = newTime;
return result;