summaryrefslogtreecommitdiff
path: root/drivers/alsamidi
diff options
context:
space:
mode:
authorOvnuniarchos <pujalte.jorge@gmail.com>2020-01-18 15:59:59 +0100
committerOvnuniarchos <pujalte.jorge@gmail.com>2020-01-18 15:59:59 +0100
commitaf95554aff36e6a99f7641c1609b77e8adb0a1cd (patch)
tree45386b80182d7757645b6e5d75ecf9fb989528c5 /drivers/alsamidi
parent269eb5f06c8874e1257137eabe121d4501758ded (diff)
Alsa MIDI input thread gets properly reinitialized on open.
Diffstat (limited to 'drivers/alsamidi')
-rw-r--r--drivers/alsamidi/midi_driver_alsamidi.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/alsamidi/midi_driver_alsamidi.cpp b/drivers/alsamidi/midi_driver_alsamidi.cpp
index ff9d866aee..10581a460c 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;