[main] Ensure second deactivate blocks until deactivation

When it comes to deactivation where the various steps of boot
have to be carefully synchronized, we need to make sure that
the client doesn't return early.
This commit is contained in:
Ray Strode 2010-03-21 22:59:09 -04:00
parent 8ca85f9ab3
commit fb19bb2371

View file

@ -760,7 +760,10 @@ on_deactivate (state_t *state,
{
if (state->deactivate_trigger != NULL)
{
ply_trigger_pull (deactivate_trigger, NULL);
ply_trigger_add_handler (state->deactivate_trigger,
(ply_trigger_handler_t)
ply_trigger_pull,
deactivate_trigger);
return;
}