Handle 'error' SSH event

This commit is contained in:
Bryan Ashby 2017-08-19 13:56:42 -06:00
parent 0ebf839822
commit 2711f892a2
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ exports.getModule = class DoorPartyModule extends MenuModule {
}); });
}); });
}); });
sshClient.on('error', err => {
self.client.log.info(`DoorParty SSH client error: ${err.message}`);
});
sshClient.on('close', () => { sshClient.on('close', () => {
restorePipe(); restorePipe();