Skip to content
Snippets Groups Projects
Commit 942cc488 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 ab49d46c
No related branches found
No related tags found
No related merge requests found
......@@ -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));
line=client.socket.recvline(10240, 1800);
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.
Finish editing this message first!
Please register or to comment