telegps: Disconnect telemetry device when closing monitor window
authorKeith Packard <keithp@keithp.com>
Fri, 13 Jun 2014 07:28:09 +0000 (00:28 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 13 Jun 2014 07:28:09 +0000 (00:28 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
telegps/TeleGPS.java

index 9aaa80c..1898a66 100644 (file)
@@ -370,6 +370,7 @@ public class TeleGPS
        }
 
        private void close() {
+               disconnect();
                AltosUIPreferences.unregister_font_listener(this);
                AltosPreferences.unregister_units_listener(this);
                setVisible(false);