Handle 'error' SSH event
This commit is contained in:
parent
0ebf839822
commit
2711f892a2
|
@ -97,6 +97,10 @@ exports.getModule = class DoorPartyModule extends MenuModule {
|
|||
});
|
||||
});
|
||||
|
||||
sshClient.on('error', err => {
|
||||
self.client.log.info(`DoorParty SSH client error: ${err.message}`);
|
||||
});
|
||||
|
||||
sshClient.on('close', () => {
|
||||
restorePipe();
|
||||
callback(null);
|
||||
|
|
Loading…
Reference in New Issue