Skip to content
Snippets Groups Projects
Commit ad4eab9c authored by deuce's avatar deuce
Browse files

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."
parent 6e16f77a
Branches
Tags
No related merge requests found
......@@ -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--;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment