summaryrefslogtreecommitdiff
path: root/telegps
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-13 00:28:09 -0700
committerKeith Packard <keithp@keithp.com>2014-06-13 00:28:09 -0700
commit8cb41ce9a64029b611b3595c86a4a8e74b952ff4 (patch)
treef0ff8194b93063166f8a82d51556549a6e33b35b /telegps
parentfd9ae83492648c5d39f60bdcff15481efb365701 (diff)
telegps: Disconnect telemetry device when closing monitor window
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'telegps')
-rw-r--r--telegps/TeleGPS.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/telegps/TeleGPS.java b/telegps/TeleGPS.java
index 9aaa80c3..1898a668 100644
--- a/telegps/TeleGPS.java
+++ b/telegps/TeleGPS.java
@@ -370,6 +370,7 @@ public class TeleGPS
}
private void close() {
+ disconnect();
AltosUIPreferences.unregister_font_listener(this);
AltosPreferences.unregister_units_listener(this);
setVisible(false);