Fix missing yield in lock acquirer

early_deth_fixes
Tyler Goodlet 2021-11-04 11:47:28 -04:00
parent 08fa55a8c3
commit dbe5d96d66
1 changed files with 5 additions and 1 deletions

View File

@ -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