Merge "MidiService: synchronize mDeviceConnections" into sc-dev am: e65c02b278 am: d36d69ada6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15317991 Change-Id: I7d54cf96694e814aefaf17dc8cdcfe1c4b973530
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