This commit is contained in:
Eugene Pankov 2020-03-19 12:47:38 +01:00
parent ef5c9b52a5
commit 2b8bb47aed

View File

@ -245,14 +245,16 @@ export class SSHSession extends BaseSession {
socket.destroy() socket.destroy()
return return
} }
stream.pipe(socket) if (stream) {
socket.pipe(stream) stream.pipe(socket)
stream.on('close', () => { socket.pipe(stream)
socket.destroy() stream.on('close', () => {
}) socket.destroy()
socket.on('close', () => { })
stream.close() socket.on('close', () => {
}) stream.close()
})
}
} }
) )
}).then(() => { }).then(() => {