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