From 274c556d6d58fab17d0d215ca4c75345b524add5 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 7 Aug 2016 15:46:47 +1000 Subject: [PATCH] try again --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 562b855..1f8bc2f 100644 --- a/main.c +++ b/main.c @@ -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; }