Skip to content

Commit

Permalink
Web MIDI: regression bug fix
Browse files Browse the repository at this point in the history
The send thread should start iff the thread is not running.
Accidentally, the condition was reversed :(

BUG=326888

Review URL: https://codereview.chromium.org/107513007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239710 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
toyoshim@chromium.org committed Dec 10, 2013
1 parent 4aa3c22 commit 431cead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/midi/midi_manager_mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void MIDIManagerMac::DispatchSendMIDIData(MIDIManagerClient* client,
uint32 port_index,
const std::vector<uint8>& data,
double timestamp) {
if (send_thread_.IsRunning())
if (!send_thread_.IsRunning())
send_thread_.Start();

// OK to use base::Unretained(this) since we join to thread in dtor().
Expand Down

0 comments on commit 431cead

Please sign in to comment.