diff rlgterm.js @ 27:83f9a799a374

rlgwebd.js: read commands from the console The RLG-Web server can now be controlled with commands sent to stdin. Currently, the only one implemented is "quit". Some improvements to the shutdown process were also made.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 04 Jun 2012 14:21:41 -0700
parents 51d59a0e3b20
children f15efa4818b4
line wrap: on
line diff
--- a/rlgterm.js	Mon Jun 04 10:19:36 2012 -0700
+++ b/rlgterm.js	Mon Jun 04 14:21:41 2012 -0700
@@ -132,7 +132,7 @@
   if (!msgDict.t)
     return null;
   else if (msgDict.t == "E") {
-    if (msgDict.c == 1) {
+    if (msgDict.c == 1 || msgDict.c == 6) {
       logout();
     }
     debug(1, "Server error: " + msgDict.s);