Merge pull request #497 from dtzWill/fix/no-skip-buildid-forward

queue-monitor: never move lastBuildId forward without processing jobs.
This commit is contained in:
Eelco Dolstra 2017-07-26 11:40:48 +02:00 committed by GitHub
commit 5ee74dd3a0

View file

@ -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()) {