From 961b326110667309d309cc547d706526bd540104 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 14 Jan 2016 01:51:49 +0000 Subject: [PATCH] Fix handling of file.REJECT from want_callback(). Reset senteob when addFile() is called on a 1.1 session. --- exec/load/binkp.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exec/load/binkp.js b/exec/load/binkp.js index 9d37b764c7..12e347caff 100644 --- a/exec/load/binkp.js +++ b/exec/load/binkp.js @@ -398,7 +398,7 @@ BinkP.prototype.session = function() this.sendCmd(this.command.M_SKIP, this.escapeFileName(args[0])+' '+args[1]+' '+args[2]); break; case this.file.REJECT: - this.m + this.sendCmd(this.command.M_GOT, this.escapeFileName(args[0])+' '+args[1]+' '+args[2]); break; case this.file.ACCEPT: size = file_size(tmp.name); @@ -521,7 +521,7 @@ BinkP.prototype.session = function() } } } - if (this.sending === undefined && !this.senteob)) { + if (this.sending === undefined && !this.senteob) { this.sending = this.tx_queue.shift(); if (this.sending === undefined) { this.sendCmd(this.command.M_EOB); @@ -772,5 +772,7 @@ BinkP.prototype.addFile = function(name) if (!file.open("rb", true)) return false; + if (this.ver1_1) + this.senteob = false; this.tx_queue.push(file); }; -- GitLab