1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

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!

[originally from svn r6805]
This commit is contained in:
Simon Tatham 2006-08-26 10:19:23 +00:00
parent b2fec9f576
commit d5f4ce4611

View File

@ -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;