* Minor fixes

This commit is contained in:
Bryan Ashby 2015-06-21 21:11:11 -06:00
parent 2c8ce36154
commit 45aa97071e
2 changed files with 6 additions and 2 deletions

View File

@ -183,6 +183,10 @@ function startListening() {
}); });
}); });
server.on('error', function serverErr(err) {
logger.log.info(err); // 'close' should be handled after
});
server.listen(port); server.listen(port);
logger.log.info({ server : module.moduleInfo.name, port : port }, 'Listening for connections'); logger.log.info({ server : module.moduleInfo.name, port : port }, 'Listening for connections');
}); });

View File

@ -537,11 +537,11 @@ TelnetClient.prototype.handleDontCommand = function(evt) {
}; };
TelnetClient.prototype.setTermType = function(ttype) { TelnetClient.prototype.setTermType = function(ttype) {
this.term.env['TERM'] = ttype; this.term.env.TERM = ttype;
this.term.termType = ttype; this.term.termType = ttype;
Log.debug( { termType : ttype }, 'Set terminal type'); Log.debug( { termType : ttype }, 'Set terminal type');
} };
TelnetClient.prototype.handleSbCommand = function(evt) { TelnetClient.prototype.handleSbCommand = function(evt) {
var self = this; var self = this;