queue-monitor: never move lastBuildId forward without processing jobs.
This commit is contained in:
parent
e117d85c2a
commit
719df63190
|
@ -49,7 +49,7 @@ void State::queueMonitorLoop()
|
|||
conn->get_notifs();
|
||||
|
||||
if (auto lowestId = buildsAdded.get()) {
|
||||
lastBuildId = std::stoi(*lowestId) - 1;
|
||||
lastBuildId = std::min(lastBuildId, static_cast<unsigned>(std::stoul(*lowestId) - 1));
|
||||
printMsg(lvlTalkative, "got notification: new builds added to the queue");
|
||||
}
|
||||
if (buildsRestarted.get()) {
|
||||
|
|
Loading…
Reference in a new issue