Fix breakage of `Restart Session' in r6802. When restarting the
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 21 Sep 2006 11:48:32 +0000 (11:48 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 21 Sep 2006 11:48:32 +0000 (11:48 +0000)
session, we were clearing the new session_closed flag, but failing
to clear must_close_session; with that set, the session was being
opened but immediately re-closed.

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

windows/window.c

index d58111f..963b5ba 100644 (file)
@@ -272,6 +272,7 @@ static void start_backend(void)
        DeleteMenu(popup_menus[i].menu, IDM_RESTART, MF_BYCOMMAND);
     }
 
+    must_close_session = FALSE;
     session_closed = FALSE;
 }