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) {
|
if (mDeviceConnections != null) {
|
||||||
for (DeviceConnection connection : mDeviceConnections) {
|
synchronized (mDeviceConnections) {
|
||||||
connection.notifyClient(server);
|
for (DeviceConnection connection : mDeviceConnections) {
|
||||||
|
connection.notifyClient(server);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user