Merge "Possibly fix deadlock." into nyc-dev

am: a0424c729f

* commit 'a0424c729f32164fb17dc9d92978f84897d75c7b':
  Possibly fix deadlock.
This commit is contained in:
Julia Reynolds
2016-02-12 19:07:02 +00:00
committed by android-build-merger

View File

@@ -234,9 +234,13 @@ public class ConditionProviders extends ManagedServices {
final ConditionRecord r = getRecordLocked(c.id, info.component, true /*create*/);
r.info = info;
r.condition = c;
if (mCallback != null) {
mCallback.onConditionChanged(c.id, c);
}
}
}
final int N = conditions.length;
for (int i = 0; i < N; i++) {
final Condition c = conditions[i];
if (mCallback != null) {
mCallback.onConditionChanged(c.id, c);
}
}
}