Skip to content

Commit

Permalink
Update src/trio/_core/_run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Dec 22, 2024
1 parent acf8c4f commit 7c0fb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trio/_core/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ def close(self) -> None:
self.asyncgens.close()
if "after_run" in self.instruments:
self.instruments.call("after_run")
self.system_nursery: Nursery | None = None
self.system_nursery = None
# This is where KI protection gets disabled, so we do it last
self.ki_manager.close()

Expand Down

0 comments on commit 7c0fb4c

Please sign in to comment.