Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70a81470 authored by Phil Burk's avatar Phil Burk
Browse files

MidiManager: fix output port close



Clear array entry when MidiOutputPort closed and EndOfStream
is detected.

Change-Id: I47e38ac3a46039d950c66381eac55e2dd10bf9fb
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent d7fcd28f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -86,8 +86,9 @@ public class MidiOutputPort extends MidiPort implements MidiSender {
                    }
                }
            } catch (IOException e) {
                Log.e(TAG, "read failed");
                // report I/O failure
                Log.e(TAG, "read failed");
            } finally {
                IoUtils.closeQuietly(mInputStream);
                onIOException();
            }