try again

This commit is contained in:
Andrew Pamment 2016-08-07 15:46:47 +10:00
parent 8e6667ed4f
commit 274c556d6d

3
main.c
View File

@ -414,6 +414,9 @@ static int ssh_copy_fd_to_chan(socket_t fd, int revents, void *userdata) {
int sz = 0;
if(!chan) {
if (mynode != 0) {
disconnect("Channel Closed");
}
close(fd);
return -1;
}