From c1856a6184da2701ccc472d59a06f6fa9907e5ac Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Wed, 23 May 2012 14:28:47 -0700 Subject: [PATCH] Fix some typos. Some code copied and pasted without updating the variable names was causing crashes. --- rlgterm.js | 2 +- rlgwebd.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rlgterm.js b/rlgterm.js index 10204e2..7664add 100644 --- a/rlgterm.js +++ b/rlgterm.js @@ -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); diff --git a/rlgwebd.js b/rlgwebd.js index 9183f1c..cecbd97 100755 --- a/rlgwebd.js +++ b/rlgwebd.js @@ -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"}));