Merge branch '0.0.9-alpha' of github.com:NuSkooler/enigma-bbs into security-updates
This commit is contained in:
commit
75d6eef92f
|
@ -170,6 +170,12 @@ exports.getModule = class AbracadabraModule extends MenuModule {
|
||||||
this.doorInstance.run(exeInfo, () => {
|
this.doorInstance.run(exeInfo, () => {
|
||||||
trackDoorRunEnd(doorTracking);
|
trackDoorRunEnd(doorTracking);
|
||||||
|
|
||||||
|
// client may have disconnected while process was active -
|
||||||
|
// we're done here if so.
|
||||||
|
if(!this.client.term.output) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Try to clean up various settings such as scroll regions that may
|
// Try to clean up various settings such as scroll regions that may
|
||||||
// have been set within the door
|
// have been set within the door
|
||||||
|
|
|
@ -40,6 +40,10 @@ module.exports = class LoginServerModule extends ServerModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleNewClient(client, clientSock, modInfo) {
|
handleNewClient(client, clientSock, modInfo) {
|
||||||
|
clientSock.on('error', err => {
|
||||||
|
logger.log.warn({ modInfo, error : err.message }, 'Client socket error');
|
||||||
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
// Start tracking the client. A session ID aka client ID
|
// Start tracking the client. A session ID aka client ID
|
||||||
// will be established in addNewClient() below.
|
// will be established in addNewClient() below.
|
||||||
|
@ -68,7 +72,7 @@ module.exports = class LoginServerModule extends ServerModule {
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('error', err => {
|
client.on('error', err => {
|
||||||
logger.log.info({ clientId : client.session.id }, 'Connection error: %s' % err.message);
|
logger.log.info({ clientId : client.session.id, error : err.message }, 'Connection error');
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('close', err => {
|
client.on('close', err => {
|
||||||
|
|
Loading…
Reference in New Issue