瀏覽代碼

Fix login server delay in accepting another login attempt

Fix #327
Image 3 年之前
父節點
當前提交
bbef23f125
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      EQ2/source/LoginServer/client.cpp

+ 1 - 1
EQ2/source/LoginServer/client.cpp

@@ -753,7 +753,7 @@ void ClientList::Process() {
 			in.s_addr = client->getConnection()->GetRemoteIP();
 			net.numclients--;
 			LogWrite(LOGIN__INFO, 0, "Login", "Removing client from ip: %s on port %i, Account Name: %s", inet_ntoa(in), ntohs(client->getConnection()->GetRemotePort()), client->GetAccountName());
-			client->getConnection()->SetState(CLOSED);
+			client->getConnection()->Close();
 			net.UpdateWindowTitle();
 			client_list.erase(client);
 		}