Fix data race in MultiProgressMonitor

This is work related to [1] but AFAICT real race condition happens only
for count member. Therefore proposed protecting it in this change.

[1] https://gerrit-review.googlesource.com/#/c/87442/
Change-Id: I8eca2e17be83af25cffd30b4de40cf7f46eb6f48
Signed-off-by: Jacek Centkowski <geminica.programs@gmail.com>
This commit is contained in:
Jacek Centkowski
2016-11-07 14:26:43 +01:00
parent 3bdbc69305
commit d1c7f5a495

View File

@@ -319,7 +319,7 @@ public class MultiProgressMonitor {
if (!tasks.isEmpty()) {
boolean first = true;
for (Task t : tasks) {
int count = t.count;
int count = t.getCount();
if (count == 0) {
continue;
}