Merge "MidiService: synchronize mDeviceConnections" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e65c02b278
@@ -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