From 43d640c45339e658ff2ba87eec9f60a3bb5313ef Mon Sep 17 00:00:00 2001 From: Anderson Entwistle <46688047+aentwist@users.noreply.github.com> Date: Sun, 14 Jul 2024 21:43:30 -0600 Subject: [PATCH] fix(api): adb output should be captured --- api/autoafk/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/autoafk/tools.py b/api/autoafk/tools.py index ef97981..c766579 100644 --- a/api/autoafk/tools.py +++ b/api/autoafk/tools.py @@ -96,10 +96,10 @@ def _start_adb_server() -> None: logger.debug(f"Using adb at {adb_path}") logger.debug("Starting adb server...") - subprocess.run([adb_path, "start-server"]) + subprocess.run([adb_path, "start-server"], capture_output=True, text=True) def kill_adb_server() -> None: - subprocess.run([adb_path, "kill-server"]) + subprocess.run([adb_path, "kill-server"], capture_output=True, text=True) # atexit.register(kill_adb_server)