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

Fix handling of file.REJECT from want_callback().

Reset senteob when addFile() is called on a 1.1 session.
parent 69012665
No related branches found
No related tags found
No related merge requests found
......@@ -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);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment