game: pull out single-client logic from XSocketServer

This commit is contained in:
Tyler Wilding
2022-05-01 16:15:26 -04:00
parent 0a74c9ad9d
commit a9f963b545
6 changed files with 97 additions and 78 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ void deci2_runner(SystemThreadInterface& iface) {
lg::debug("[DECI2] Waiting for listener...");
bool saw_listener = false;
while (!iface.get_want_exit()) {
if (server.wait_for_connection()) {
if (server.is_client_connected()) {
if (!saw_listener) {
lg::debug("[DECI2] Connected!");
}