From: simon Date: Sat, 26 Aug 2006 10:19:23 +0000 (+0000) Subject: Another bug fix: always set the busy flag when telling a subthread X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/c969e831c5977919d3e1c094acc86e194c50d17c Another bug fix: always set the busy flag when telling a subthread to do something, otherwise handle_get_events will forget to tell the front end to check for that subthread finishing. This applies even when we're only setting `busy' to tell the subthread to terminate! git-svn-id: svn://svn.tartarus.org/sgt/putty@6805 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/winhandl.c b/windows/winhandl.c index c7dc65b9..a5b7c696 100644 --- a/windows/winhandl.c +++ b/windows/winhandl.c @@ -391,6 +391,7 @@ void handle_free(struct handle *h) */ h->u.g.moribund = TRUE; h->u.g.done = TRUE; + h->u.g.busy = TRUE; SetEvent(h->u.g.ev_from_main); } } @@ -424,6 +425,7 @@ void handle_got_event(HANDLE event) handle_destroy(h); } else { h->u.g.done = TRUE; + h->u.g.busy = TRUE; SetEvent(h->u.g.ev_from_main); } return;