diff --git a/src/audio/rtmidi.cpp b/src/audio/rtmidi.cpp index dd8a0a75e..258f69292 100644 --- a/src/audio/rtmidi.cpp +++ b/src/audio/rtmidi.cpp @@ -67,6 +67,7 @@ bool TAMidiInRtMidi::gather() { } } catch (RtMidiError& e) { logE("MIDI input error! %s",e.what()); + closeDevice(); return false; } return true;