summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mike Lockwood <lockwood@google.com> 2015-01-30 18:19:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-01-30 18:19:49 +0000
commitc9adb14afd7380af7d56753d9dd3a11f9eceb3ee (patch)
tree1664350d5f51dac9b7e9d374cf30b35468195f82
parentde11d2871063874505a7d3bbcbebff86912bc0f3 (diff)
parent70a8147012f2f0e364424e788a11b8ad50f44421 (diff)
Merge "MidiManager: fix output port close"
-rw-r--r--core/java/android/midi/MidiOutputPort.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/midi/MidiOutputPort.java b/core/java/android/midi/MidiOutputPort.java
index 00b7bad9c736..ec5b319249e4 100644
--- a/core/java/android/midi/MidiOutputPort.java
+++ b/core/java/android/midi/MidiOutputPort.java
@@ -85,8 +85,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();
}