forked from goodboy/tractor
Test: don't grab debug lock if not in mode
parent
925af28092
commit
083b73ad4a
|
@ -558,6 +558,9 @@ async def acquire_debug_lock(
|
||||||
Grab root's debug lock on entry, release on exit.
|
Grab root's debug lock on entry, release on exit.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
if not debug_mode():
|
||||||
|
return
|
||||||
|
|
||||||
async with trio.open_nursery() as n:
|
async with trio.open_nursery() as n:
|
||||||
cs = await n.start(
|
cs = await n.start(
|
||||||
wait_for_parent_stdin_hijack,
|
wait_for_parent_stdin_hijack,
|
||||||
|
|
Loading…
Reference in New Issue