changeset 22:51d59a0e3b20

Fix some typos. Some code copied and pasted without updating the variable names was causing crashes.
author John "Elwin" Edwards <elwin@sdf.org>
date Wed, 23 May 2012 14:28:47 -0700
parents 82be54381964
children 21de24c08aed
files rlgterm.js rlgwebd.js
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rlgterm.js	Wed May 23 07:46:08 2012 -0700
+++ b/rlgterm.js	Wed May 23 14:28:47 2012 -0700
@@ -152,7 +152,7 @@
         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);
--- a/rlgwebd.js	Wed May 23 07:46:08 2012 -0700
+++ b/rlgwebd.js	Wed May 23 14:28:47 2012 -0700
@@ -391,7 +391,7 @@
     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"}));