Merge pull request #2334 from dtzWill/fix/revert-progress-bar-refresh-for-now

Revert "progress-bar: re-draw last update if nothing new for 1sec."
This commit is contained in:
Eelco Dolstra 2018-08-06 19:01:08 +02:00 committed by GitHub
commit 103ad1598c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,9 +75,8 @@ public:
updateThread = std::thread([&]() { updateThread = std::thread([&]() {
auto state(state_.lock()); auto state(state_.lock());
while (state->active) { while (state->active) {
auto r = state.wait_for(updateCV, std::chrono::seconds(1)); state.wait(updateCV);
draw(*state); draw(*state);
if (r == std::cv_status::no_timeout)
state.wait_for(quitCV, std::chrono::milliseconds(50)); state.wait_for(quitCV, std::chrono::milliseconds(50));
} }
}); });