diff --git a/tractor/_debug.py b/tractor/_debug.py index 67485af..7aac4eb 100644 --- a/tractor/_debug.py +++ b/tractor/_debug.py @@ -558,6 +558,9 @@ async def acquire_debug_lock( Grab root's debug lock on entry, release on exit. ''' + if not debug_mode(): + return + async with trio.open_nursery() as n: cs = await n.start( wait_for_parent_stdin_hijack,