summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--common-channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common-channel.c b/common-channel.c
index abe5941..b846f28 100644
--- a/common-channel.c
+++ b/common-channel.c
@@ -256,7 +256,6 @@ void channelio(fd_set *readfds, fd_set *writefds) {
if (ses.channel_signal_pending) {
/* SIGCHLD can change channel state for server sessions */
do_check_close = 1;
- ses.channel_signal_pending = 0;
}
/* handle any channel closing etc */
@@ -265,6 +264,8 @@ void channelio(fd_set *readfds, fd_set *writefds) {
}
}
+ ses.channel_signal_pending = 0;
+
#ifdef USING_LISTENERS
handle_listeners(readfds);
#endif