Skip to content

Commit

Permalink
stdout can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Sep 1, 2024
1 parent 4eda8d9 commit 799996e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/decky_loader/localplatform/localplatformlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 799996e

Please sign in to comment.