ssh2_set_window checks whether the channel is being closed, so there's no
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 17 Feb 2007 22:15:57 +0000 (22:15 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 17 Feb 2007 22:15:57 +0000 (22:15 +0000)
need to check that before calling it.

git-svn-id: svn://svn.tartarus.org/sgt/putty@7293 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index d4d3d06..1d17882 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -8927,8 +8927,7 @@ static void ssh_unthrottle(void *handle, int bufsize)
            ssh1_throttle(ssh, -1);
        }
     } else {
-       if (ssh->mainchan && ssh->mainchan->closes == 0)
-           ssh2_set_window(ssh->mainchan, OUR_V2_WINSIZE - bufsize);
+       ssh2_set_window(ssh->mainchan, OUR_V2_WINSIZE - bufsize);
     }
 }