altoslib: Pass InterruptedException up the stack instead of hiding it
[fw/altos] / altosui / AltosConfig.java
index a6e6094fc1acbc21fb23dc5ca3de8e60ff612843..206cbee3e57bf2fd718d124f09da374ad2b167fd 100644 (file)
@@ -161,9 +161,9 @@ public class AltosConfig implements ActionListener {
                        } finally {
                                try {
                                        stop_serial();
+                                       serial_line.close();
                                } catch (InterruptedException ie) {
                                }
-                               serial_line.close();
                        }
                }