From ad4eab9c8ad4ba7253b78dea8dcb1ba776bad564 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Fri, 15 Jan 2016 10:29:27 +0000 Subject: [PATCH] Add a TX callback as well since we are required to delete flow files as soon as "all the information" is sent... per FTS-5005: "The mailer should not wait for the end of the session when deleting the flow file." --- exec/load/binkp.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exec/load/binkp.js b/exec/load/binkp.js index e7cd7c2a64..356838e96a 100644 --- a/exec/load/binkp.js +++ b/exec/load/binkp.js @@ -43,7 +43,7 @@ load("fido.js"); * transfer. */ -function BinkP(name_ver, inbound, rx_callback) +function BinkP(name_ver, inbound, rx_callback, tx_callback) { var addr; @@ -56,6 +56,7 @@ function BinkP(name_ver, inbound, rx_callback) this.inbound = backslash(inbound); this.rx_callback = rx_callback; + this.tx_callback = tx_callback; this.default_zone = 1; addr = FIDO.parse_addr(system.fido_addr_list[0], this.default_zone); @@ -420,6 +421,8 @@ BinkP.prototype.session = function() for (i=0; i<this.pending_ack.length; i++) { if (this.pending_ack[i].sendas == args[0]) { this.sent_files.push(this.pending_ack[i].file.name); + if (this.tx_callback !== undefined) + this.tx_callback(this.pending_ack[i], this); this.pending_ack.splice(i, 1); i--; } -- GitLab