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

Only clear the senteob flag when we add a new file or when get get an M_EOB

command.

Fixes issue with Radius thinking we left because we sent an empty batch.
parent 2853f977
No related branches found
No related tags found
No related merge requests found
......@@ -390,7 +390,6 @@ BinkP.prototype.session = function()
// Ignore
break;
case this.command.M_FILE:
this.senteob = false;
this.ack_file();
args = this.parseArgs(pkt.data);
if (args.length < 4) {
......@@ -442,6 +441,8 @@ BinkP.prototype.session = function()
break;
case this.command.M_EOB:
this.ack_file();
if (this.ver1_1)
this.senteob = false;
if (this.senteob && this.pending_ack.length === 0)
break outer;
break;
......
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