DescriptionPrevent a race condition with MidiHost IPC sending.
EndSession() is moved from MidiHost's destructor into OnChannelClosing() before
the destruction process starts (at which point it is unsafe to call any
functions on the MidiHost/MidiManagerClient).
Also moves a function call on a MidiManagerClient in MidiManager into the AutoLock
scope.
BUG=576383
R=toyoshim@chromium.org,agoode@chromium.org
Committed: https://crrev.com/bd648ad6116ad3eb09356fb8c34fb006dbe86d4c
Cr-Commit-Position: refs/heads/master@{#369091}
Patch Set 1 #Patch Set 2 : minor comment nit #
Total comments: 2
Patch Set 3 : better fix #
Total comments: 2
Patch Set 4 : style #
Messages
Total messages: 20 (8 generated)
|