Merge "Possibly fix deadlock." into nyc-dev
am: a0424c729f
* commit 'a0424c729f32164fb17dc9d92978f84897d75c7b':
Possibly fix deadlock.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user