Avoid silent fallback to TCP if binding to systemd socket fails

This commit is contained in:
2026-07-09 20:57:36 +02:00
parent 8d7873fb9f
commit 6a66b5320e
+1 -4
View File
@@ -1338,10 +1338,7 @@ class PromptServer():
return sockets
for i in range(listen_fds):
fd = 3 + i
try:
sockets.append(_fd_to_socket(fd))
except Exception as e:
logging.error(f"Failed to convert fd {fd}: {e}")
sockets.append(_fd_to_socket(fd))
os.unsetenv("LISTEN_FDS")
os.unsetenv("LISTEN_PID")
return sockets