diff --git a/ansible_mitogen/target.py b/ansible_mitogen/target.py index 268bdd51..20086cec 100644 --- a/ansible_mitogen/target.py +++ b/ansible_mitogen/target.py @@ -104,9 +104,8 @@ def start_fork_parent(econtext): polluting the global interpreter state in a way that effects explicitly isolated modules. """ - mitogen.parent.upgrade_router(econtext) - global _fork_parent + mitogen.parent.upgrade_router(econtext) _fork_parent = econtext.router.fork()