Commit f8520678 authored by Jason Madden's avatar Jason Madden

Tweak comment to add reason whe we must destroy the hub first. [skip ci]

parent 121e4b08
......@@ -800,7 +800,9 @@ class Hub(WaitOperationsGreenlet):
# cleaned up. Otherwise there are likely to be reference
# cycles still around. We MUST do this before we destroy the
# loop; if we destroy the loop and then switch into the hub,
# things will go VERY, VERY wrong.
# things will go VERY, VERY wrong (because we will have destroyed
# the C datastructures in the middle of the C function that's
# using them; the best we can hope for is a segfault).
try:
self.throw(HubDestroyed(destroy_loop))
except LoopExit:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment