From 434afaf717eef01f26b6b95ba8b4ae50fc470a4c Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 18 Nov 2008 00:47:30 +0000 Subject: * Added and removed debug information relating to client connections * Minor client fixes * Added the ability for a client to login without a UserProfile, allowing certain alternate clients to connect to the region. --- OpenSim/Framework/ClientManager.cs | 3 +-- OpenSim/Framework/Communications/LoginService.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/ClientManager.cs b/OpenSim/Framework/ClientManager.cs index 1bb9836..cdccf0e 100644 --- a/OpenSim/Framework/ClientManager.cs +++ b/OpenSim/Framework/ClientManager.cs @@ -49,8 +49,7 @@ namespace OpenSim.Framework public void ForEachClient(ForEachClientDelegate whatToDo) { - // Wasteful, I know - IClientAPI[] LocalClients = new IClientAPI[0]; + IClientAPI[] LocalClients; lock (m_clients) { LocalClients = new IClientAPI[m_clients.Count]; diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index c569a71..b4ee069 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs @@ -166,7 +166,7 @@ namespace OpenSim.Framework.Communications } else if (requestData.Contains("web_login_key")) { - UUID webloginkey = UUID.Zero; + UUID webloginkey; try { webloginkey = new UUID((string)requestData["web_login_key"]); -- cgit v1.1