From 799996e499559c9c42129c44032905ed99f9be30 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sun, 1 Sep 2024 19:39:12 -0400 Subject: [PATCH] stdout can be null --- backend/decky_loader/localplatform/localplatformlinux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/decky_loader/localplatform/localplatformlinux.py b/backend/decky_loader/localplatform/localplatformlinux.py index a483bbf4..63a07292 100644 --- a/backend/decky_loader/localplatform/localplatformlinux.py +++ b/backend/decky_loader/localplatform/localplatformlinux.py @@ -256,7 +256,7 @@ async def close_cef_socket(): return # Look for anything listening TCP on port 8080 lsof, stdout, _ = await run(["lsof", "-F", "-iTCP:8080", "-sTCP:LISTEN"], stdout=PIPE) - if lsof.returncode != 0 or len(stdout) < 1: + if not stdout or lsof.returncode != 0 or len(stdout) < 1: logger.error(f"lsof call failed in close_cef_socket! return code: {str(lsof.returncode)}") return