Skip to content

Commit 9ae14c3

Browse files
added logging
1 parent 3e5d011 commit 9ae14c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cawsr.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,12 @@ def run_scenario(
369369
finally:
370370
try:
371371
result_.get_nowait()
372+
logger.info("Clearing process pipe...")
372373
except multiprocessing.queues.Empty:
373-
pass
374+
logger.info("Process pipe is empty")
375+
logger.info("Stopping process...")
374376
result_.put(result_dict)
377+
os._exit(0) # force exit
375378

376379
def _tick_carla(self) -> None:
377380
"""Advances CARLA 1 tick into the future"""

0 commit comments

Comments
 (0)