-
Committer:
simon
-
Date:
2014-09-07 13:06:52 UTC
-
Revision ID:
svn-v4:cda61777-01e9-0310-a592-d414129be87e:putty:10216
Close the listening socket when a sharing upstream dies.
Without this, doing 'Restart Session' on Windows in a session with
sharing enabled but no actual sharing being done would crash, because
the first incarnation of the session would become an upstream and
establish a listening named pipe, which then wouldn't get cleaned up
when the session closed, so the restarted session would try to connect
to it, triggering a call to plug_accepting on a freed sharestate.