queue-monitor: never move lastBuildId forward without processing jobs.

This commit is contained in:
Will Dietz 2017-07-25 19:46:24 -05:00
parent e117d85c2a
commit 719df63190

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