altos: AltosSerial.flush_input shouldn't discard Interrupted exceptions
[fw/altos] / altosui / AltosEepromDownload.java
index b44a1451b241db864a3790df8ff00389e95678a3..358ad337900e204435726f005cd529a299fc20ab 100644 (file)
@@ -373,8 +373,12 @@ public class AltosEepromDownload implements Runnable {
                                     "Connection Failed",
                                     JOptionPane.ERROR_MESSAGE);
                } finally {
-                       if (remote)
-                               serial_line.stop_remote();
+                       if (remote) {
+                               try {
+                                       serial_line.stop_remote();
+                               } catch (InterruptedException ie) {
+                               }
+                       }
                        serial_line.flush_output();
                }
                monitor.done();