diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-13 21:10:15 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-13 21:10:15 -0700 |
commit | 924d56a4d2d8b16530cd378b18cfc5d6e08420ed (patch) | |
tree | 5ef26000b726f86d861c9838f706382df72d2a36 /altosui/AltosEepromManage.java | |
parent | dcd15032eec45f3fdd003050710ebd5b85052662 (diff) |
altos: AltosSerial.flush_input shouldn't discard Interrupted exceptions
The eeprom download code wants to interrupt serial communication so
that it can stop downloading stuff in the middle of a run. Make
flush_input pass the exception along instead of discarding it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosEepromManage.java')
-rw-r--r-- | altosui/AltosEepromManage.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/altosui/AltosEepromManage.java b/altosui/AltosEepromManage.java index 0652ca04..2e520628 100644 --- a/altosui/AltosEepromManage.java +++ b/altosui/AltosEepromManage.java @@ -44,7 +44,10 @@ public class AltosEepromManage implements ActionListener { public void finish() { if (serial_line != null) { - serial_line.flush_input(); + try { + serial_line.flush_input(); + } catch (InterruptedException ie) { + } serial_line.close(); serial_line = null; } |