comparison rlgwebd.js @ 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 5f785e1d5cca
children 21de24c08aed
comparison
equal deleted inserted replaced
21:82be54381964 22:51d59a0e3b20
389 function logout(term, res) { 389 function logout(term, res) {
390 if (!term.alive) { 390 if (!term.alive) {
391 sendError(res, 1, null); 391 sendError(res, 1, null);
392 return; 392 return;
393 } 393 }
394 cterm.close(); 394 term.close();
395 var resheaders = {'Content-Type': 'text/plain'}; 395 var resheaders = {'Content-Type': 'text/plain'};
396 res.writeHead(200, resheaders); 396 res.writeHead(200, resheaders);
397 res.write(JSON.stringify({"t": "q"})); 397 res.write(JSON.stringify({"t": "q"}));
398 res.end(); 398 res.end();
399 return; 399 return;