From 3eba04774ecd3886625f3a520f03b44f9e7b1bdf Mon Sep 17 00:00:00 2001 From: kl Date: Thu, 8 Jun 2023 13:35:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=D0=B7=D0=BD=D0=B0=D1=87=D0=B8?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20=D0=B8=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetDropDown.xml | 7 +++---- server/src/main/java/com/example/server/Server.kt | 14 +++++++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index 8f6733c..4a5582d 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -12,8 +12,7 @@ - - + @@ -28,8 +27,8 @@ - - + + diff --git a/server/src/main/java/com/example/server/Server.kt b/server/src/main/java/com/example/server/Server.kt index 0aa0c70..4c97369 100644 --- a/server/src/main/java/com/example/server/Server.kt +++ b/server/src/main/java/com/example/server/Server.kt @@ -31,13 +31,13 @@ class Server { // else { // println("Один из игроков присоединился дважды") // } - for (pl in all_players[player.gm.id]) { - if (!pl.clientSocket.isConnected or pl.clientSocket.isClosed) { - println("Один из игроков отсоединился") - all_players[player.gm.id].remove(pl) - println("Размер очереди стал равным ${all_players[player.gm.id].size}") - } - } +// for (pl in all_players[player.gm.id]) { +// if (!pl.clientSocket.isConnected or pl.clientSocket.isClosed) { +// println("Один из игроков отсоединился") +// all_players[player.gm.id].remove(pl) +// println("Размер очереди стал равным ${all_players[player.gm.id].size}") +// } +// } check_queue(player.gm.id, true) } } -- GitLab