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

Only use reset_eob() to reset eob counts. Don't reset the EOB counts except

for in file transfer related times.
parent 7ab94936
No related branches found
No related tags found
No related merge requests found
......@@ -922,20 +922,23 @@ BinkP.prototype.sendCmd = function(cmd, data)
break;
case this.command.M_ERR:
case this.command.M_BSY:
this.senteob=this.goteob=0;
this.sock.close();
this.sock = undefined;
break;
case this.command.M_NUL:
this.senteob=this.goteob=0;
if (data.substr(0, 4) === 'OPT ') {
tmp = data.substr(4).split(/ /);
if (tmp.indexOf('NR'))
this.sent_nr = true;
}
break;
case this.command.M_ADR:
case this.command.M_PWD:
case this.command.M_OK:
break;
default:
this.reset_eob();
break;
}
return true;
};
......@@ -943,7 +946,7 @@ BinkP.prototype.sendData = function(data)
{
var len = data.length;
this.senteob=this.goteob=0;
this.reset_eob();
if (this.sock === undefined)
return false;
if (this.debug)
......
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