Don't listen to stdin in accept_connection

Fixes reconnect when server is spawned by systemd
This commit is contained in:
Sapphire
2025-12-31 00:59:36 -06:00
parent 727d4fab4d
commit 205c84b273
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -1106,7 +1106,7 @@ void wivrn_session::reconnect()
}
U_LOG_I("Waiting for new connection");
auto tcp = accept_connection(0 /*stdin*/, [this]() { return quit_if_no_client(xrt_system); });
auto tcp = accept_connection([this]() { return quit_if_no_client(xrt_system); });
if (not tcp)
{
request_stop();