Fix some typos.
Some code copied and pasted without updating the variable names was causing crashes.
This commit is contained in:
parent
018adf9acf
commit
c1856a6184
2 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ function processMsg(msg) {
|
||||||
nrecv++;
|
nrecv++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (response.n > nrecv) {
|
else if (msgDict.n > nrecv) {
|
||||||
/* The current message comes after one still missing. Queue this one
|
/* The current message comes after one still missing. Queue this one
|
||||||
* for later use. */
|
* for later use. */
|
||||||
debug(1, "Got packet " + msgDict.n + ", expected " + nrecv);
|
debug(1, "Got packet " + msgDict.n + ", expected " + nrecv);
|
||||||
|
|
|
||||||
|
|
@ -391,7 +391,7 @@ function logout(term, res) {
|
||||||
sendError(res, 1, null);
|
sendError(res, 1, null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cterm.close();
|
term.close();
|
||||||
var resheaders = {'Content-Type': 'text/plain'};
|
var resheaders = {'Content-Type': 'text/plain'};
|
||||||
res.writeHead(200, resheaders);
|
res.writeHead(200, resheaders);
|
||||||
res.write(JSON.stringify({"t": "q"}));
|
res.write(JSON.stringify({"t": "q"}));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue