From: Keith Packard Date: Fri, 13 Jun 2014 07:27:19 +0000 (-0700) Subject: altoslib: Remove telem monitoring when closing log file X-Git-Tag: 1.4~50 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=fd9ae83492648c5d39f60bdcff15481efb365701;hp=07baa7596b36cf808cd1ee26ff158b1cf8585294 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 --- 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();