RLG-Web: fix lockfile mixup.
Put the terminal dimensions into the lockfile in the proper order.
This commit is contained in:
parent
854519a7bd
commit
a847191450
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ function TermSession(game, lkey, dims, handlers) {
|
|||
var ts = timestamp();
|
||||
var progressdir = "/dgldir/inprogress-" + this.game.uname;
|
||||
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");
|
||||
var ttyrec = path.join("/dgldir/ttyrec", this.pname, this.game.uname,
|
||||
ts + ".ttyrec");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue