From dbe5d96d66ade79e8379ed52c2f9f135885a29b2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 4 Nov 2021 11:47:28 -0400 Subject: [PATCH] Fix missing yield in lock acquirer --- tractor/_debug.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tractor/_debug.py b/tractor/_debug.py index 7aac4eb..876e5f1 100644 --- a/tractor/_debug.py +++ b/tractor/_debug.py @@ -557,8 +557,13 @@ async def acquire_debug_lock( ''' Grab root's debug lock on entry, release on exit. + This helper is for actor's who don't actually need + to acquired the debugger but want to wait until the + lock is free in the tree root. + ''' if not debug_mode(): + yield None return async with trio.open_nursery() as n: @@ -627,4 +632,3 @@ async def maybe_wait_for_debugger( log.warning( 'Root acquired TTY LOCK' ) - return