RLG-Web: fix lockfile mixup.

Put the terminal dimensions into the lockfile in the proper order.
This commit is contained in:
John "Elwin" Edwards 2012-07-15 21:03:36 -07:00
parent 854519a7bd
commit a847191450

View file

@ -124,7 +124,7 @@ function TermSession(game, lkey, dims, handlers) {
var ts = timestamp(); var ts = timestamp();
var progressdir = "/dgldir/inprogress-" + this.game.uname; var progressdir = "/dgldir/inprogress-" + this.game.uname;
this.lock = path.join(progressdir, this.pname + ":node:" + ts + ".ttyrec"); this.lock = path.join(progressdir, this.pname + ":node:" + ts + ".ttyrec");
var lmsg = this.term.pid.toString() + '\n' + this.w + '\n' + this.h + '\n'; var lmsg = this.term.pid.toString() + '\n' + this.h + '\n' + this.w + '\n';
fs.writeFile(this.lock, lmsg, "utf8"); fs.writeFile(this.lock, lmsg, "utf8");
var ttyrec = path.join("/dgldir/ttyrec", this.pname, this.game.uname, var ttyrec = path.join("/dgldir/ttyrec", this.pname, this.game.uname,
ts + ".ttyrec"); ts + ".ttyrec");