From: Enrico Zini Date: Fri, 26 Mar 2010 20:04:46 +0000 (+0000) Subject: Save log in the end X-Git-Url: https://git.toastfreeware.priv.at/gregoa/zavai.git/commitdiff_plain/8b7637bb232342715edb8c0105c7b2836ab9fd67?hp=88fb24c6896b60f9976de7e1b19f299c31468b44 Save log in the end --- diff --git a/zavai/gsm.vala b/zavai/gsm.vala index bf9abc0..f318b55 100644 --- a/zavai/gsm.vala +++ b/zavai/gsm.vala @@ -351,7 +351,17 @@ public class GSM: zavai.ScriptMonitorService }); zavai.log.log.add(info.log_id, call_info); - // TODO: remove entry when it's the last possible status + // Remove entry when it's the last possible status + if (status == "release") + { + zavai.log.log.end(info.log_id); + for (weak List i = calls; i != null; i = i.next) + if (i.data.gsm_id == index) + { + calls.delete_link(i); + break; + } + } /* dbg("cbCallStatus %d, %s, %s" % (id, status, formatDict(properties)))