Merge "MidiService: synchronize mDeviceConnections" into sc-dev am: e65c02b278
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15317991 Change-Id: I1d121f6bb49f16f38c8e1914f76401c1341a4d22
This commit is contained in:
@@ -350,8 +350,10 @@ public class MidiService extends IMidiManager.Stub {
|
||||
}
|
||||
|
||||
if (mDeviceConnections != null) {
|
||||
for (DeviceConnection connection : mDeviceConnections) {
|
||||
connection.notifyClient(server);
|
||||
synchronized (mDeviceConnections) {
|
||||
for (DeviceConnection connection : mDeviceConnections) {
|
||||
connection.notifyClient(server);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user