Skip to content

Commit

Permalink
fix(api): adb output should be captured
Browse files Browse the repository at this point in the history
  • Loading branch information
aentwist committed Jul 16, 2024
1 parent f308e6c commit 43d640c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/autoafk/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 43d640c

Please sign in to comment.