Skip to content
Snippets Groups Projects
Commit 5cb71b90 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Resolve line 712: Error: can't convert parseInt(line) to an integer

parent 530dc513
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -709,9 +709,11 @@ function parse_command(line)
line=line.replace(/^{([0-9]+)}$/, "$1");
client.socket.send("+ Give me more of that good stuff\r\n");
ret=client.socket.recv(parseInt(line));
var len = parseInt(line);
if(len) {
ret=client.socket.recv(len);
line=client.socket.recvline(10240, 1800);
}
return(ret);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment