mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +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:
parent
b2fec9f576
commit
d5f4ce4611
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user