From af95554aff36e6a99f7641c1609b77e8adb0a1cd Mon Sep 17 00:00:00 2001 From: Ovnuniarchos Date: Sat, 18 Jan 2020 15:59:59 +0100 Subject: [PATCH] Alsa MIDI input thread gets properly reinitialized on open. --- drivers/alsamidi/midi_driver_alsamidi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/alsamidi/midi_driver_alsamidi.cpp b/drivers/alsamidi/midi_driver_alsamidi.cpp index ff9d866aee0..10581a460c2 100644 --- a/drivers/alsamidi/midi_driver_alsamidi.cpp +++ b/drivers/alsamidi/midi_driver_alsamidi.cpp @@ -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;