Merge pull request #35284 from Ovnuniarchos/MidiNoReopen

Alsa MIDI input thread gets properly reinitialized on open_midi_input.
This commit is contained in:
Rémi Verschelde 2020-01-19 09:34:38 +01:00 committed by GitHub
commit 43caf83c09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,7 @@ Error MIDIDriverALSAMidi::open() {
snd_device_name_free_hint(hints);
mutex = Mutex::create();
exit_thread = false;
thread = Thread::create(MIDIDriverALSAMidi::thread_func, this);
return OK;