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++;
|
||||
}
|
||||
}
|
||||
else if (response.n > nrecv) {
|
||||
else if (msgDict.n > nrecv) {
|
||||
/* The current message comes after one still missing. Queue this one
|
||||
* for later use. */
|
||||
debug(1, "Got packet " + msgDict.n + ", expected " + nrecv);
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ function logout(term, res) {
|
|||
sendError(res, 1, null);
|
||||
return;
|
||||
}
|
||||
cterm.close();
|
||||
term.close();
|
||||
var resheaders = {'Content-Type': 'text/plain'};
|
||||
res.writeHead(200, resheaders);
|
||||
res.write(JSON.stringify({"t": "q"}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue