make infotable scrollable, revert its fontsize to 14
[fw/altos] / ao-tools / altosui / AltosLog.java
index f876bebae9166c1b205f36ce55f926f3a956d714..fed96c28b0c238b20b7c7db72ef5e586383bd8e1 100644 (file)
@@ -39,9 +39,15 @@ class AltosLog implements Runnable {
        FileWriter                      log_file;
        Thread                          log_thread;
 
-       void close() throws IOException {
-               if (log_file != null)
-                       log_file.close();
+       void close() {
+               if (log_file != null) {
+                       try {
+                               log_file.close();
+                       } catch (IOException io) {
+                       }
+               }
+               if (log_thread != null)
+                       log_thread.interrupt();
        }
 
        boolean open (AltosTelemetry telem) throws IOException {
@@ -89,10 +95,7 @@ class AltosLog implements Runnable {
                } catch (InterruptedException ie) {
                } catch (IOException ie) {
                }
-               try {
-                       close();
-               } catch (IOException ie) {
-               }
+               close();
        }
 
        public AltosLog (AltosSerial s) {