diff options
author | Keith Packard <keithp@keithp.com> | 2014-06-13 00:27:19 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-13 00:27:19 -0700 |
commit | fd9ae83492648c5d39f60bdcff15481efb365701 (patch) | |
tree | 6d1a9b9e4c171888ba85108029ca991f5faf038b /altoslib/AltosLog.java | |
parent | 07baa7596b36cf808cd1ee26ff158b1cf8585294 (diff) |
altoslib: Remove telem monitoring when closing log file
If we don't remove the telemetry monitor, the telemetry device will
still be sending telemetry, which isn't good.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosLog.java')
-rw-r--r-- | altoslib/AltosLog.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/altoslib/AltosLog.java b/altoslib/AltosLog.java index 8ecb1e96..c4e9e425 100644 --- a/altoslib/AltosLog.java +++ b/altoslib/AltosLog.java @@ -48,6 +48,7 @@ public class AltosLog implements Runnable { } public void close() { + link.remove_monitor(input_queue); close_log_file(); if (log_thread != null) { log_thread.interrupt(); |