From 45aa97071e1fc46f6ceb2f4a87f1ceff854a3c97 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 21 Jun 2015 21:11:11 -0600 Subject: [PATCH] * Minor fixes --- core/bbs.js | 4 ++++ core/servers/telnet.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/bbs.js b/core/bbs.js index ac8fc0bd..59ef99fd 100644 --- a/core/bbs.js +++ b/core/bbs.js @@ -183,6 +183,10 @@ function startListening() { }); }); + server.on('error', function serverErr(err) { + logger.log.info(err); // 'close' should be handled after + }); + server.listen(port); logger.log.info({ server : module.moduleInfo.name, port : port }, 'Listening for connections'); }); diff --git a/core/servers/telnet.js b/core/servers/telnet.js index 4b51ce33..d497ca73 100644 --- a/core/servers/telnet.js +++ b/core/servers/telnet.js @@ -537,11 +537,11 @@ TelnetClient.prototype.handleDontCommand = function(evt) { }; TelnetClient.prototype.setTermType = function(ttype) { - this.term.env['TERM'] = ttype; + this.term.env.TERM = ttype; this.term.termType = ttype; Log.debug( { termType : ttype }, 'Set terminal type'); -} +}; TelnetClient.prototype.handleSbCommand = function(evt) { var self = this;