aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/SimClient.Grid.cs
diff options
context:
space:
mode:
authorMW2007-05-17 13:39:30 +0000
committerMW2007-05-17 13:39:30 +0000
commit60ceda3cfc0527e72089b748c414a027979c358d (patch)
treeac72ea0e227d5e4be3d21d5ecb428a96ca80564e /OpenSim.RegionServer/SimClient.Grid.cs
parentAttempt to fix trunk which someone broke <looks innocent> (diff)
downloadopensim-SC_OLD-60ceda3cfc0527e72089b748c414a027979c358d.zip
opensim-SC_OLD-60ceda3cfc0527e72089b748c414a027979c358d.tar.gz
opensim-SC_OLD-60ceda3cfc0527e72089b748c414a027979c358d.tar.bz2
opensim-SC_OLD-60ceda3cfc0527e72089b748c414a027979c358d.tar.xz
Attempt 2
Diffstat (limited to 'OpenSim.RegionServer/SimClient.Grid.cs')
-rw-r--r--OpenSim.RegionServer/SimClient.Grid.cs22
1 files changed, 6 insertions, 16 deletions
diff --git a/OpenSim.RegionServer/SimClient.Grid.cs b/OpenSim.RegionServer/SimClient.Grid.cs
index 6aefa6f..2f3be0e 100644
--- a/OpenSim.RegionServer/SimClient.Grid.cs
+++ b/OpenSim.RegionServer/SimClient.Grid.cs
@@ -33,12 +33,6 @@ namespace OpenSim
33 33
34 RemoteGridBase gridServer = (RemoteGridBase)this.m_gridServer; 34 RemoteGridBase gridServer = (RemoteGridBase)this.m_gridServer;
35 35
36 Dictionary<uint, AgentCircuitData> agentCircuits = this.m_authenticateSessionsHandler.AgentCircuits;
37 AgentCircuitData agentCircuit;
38
39 if (agentCircuits.TryGetValue(CircuitCode, out agentCircuit))
40 {
41
42 foreach (Hashtable neighbour in gridServer.neighbours) 36 foreach (Hashtable neighbour in gridServer.neighbours)
43 { 37 {
44 string neighbourIPStr = (string)neighbour["sim_ip"]; 38 string neighbourIPStr = (string)neighbour["sim_ip"];
@@ -49,11 +43,11 @@ namespace OpenSim
49 Console.WriteLine(reqUrl); 43 Console.WriteLine(reqUrl);
50 44
51 SimParams = new Hashtable(); 45 SimParams = new Hashtable();
52 SimParams["session_id"] = agentCircuit.SessionID.ToString(); 46 SimParams["session_id"] = this.SessionID.ToString();
53 SimParams["secure_session_id"] = agentCircuit.SecureSessionID.ToString(); 47 SimParams["secure_session_id"] = this.SecureSessionID.ToString();
54 SimParams["firstname"] = agentCircuit.firstname; 48 SimParams["firstname"] = this.ClientAvatar.firstname;
55 SimParams["lastname"] = agentCircuit.lastname; 49 SimParams["lastname"] = this.ClientAvatar.lastname;
56 SimParams["agent_id"] = agentCircuit.AgentID.ToString(); 50 SimParams["agent_id"] = this.AgentID;
57 SimParams["circuit_code"] = (Int32)this.CircuitCode; 51 SimParams["circuit_code"] = (Int32)this.CircuitCode;
58 SimParams["child_agent"] = "1"; 52 SimParams["child_agent"] = "1";
59 SendParams = new ArrayList(); 53 SendParams = new ArrayList();
@@ -80,11 +74,7 @@ namespace OpenSim
80 this.OutPacket(enable); 74 this.OutPacket(enable);
81 } 75 }
82 enablePackets.Clear(); 76 enablePackets.Clear();
83 } 77
84 else
85 {
86 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.CRITICAL, "SimClient.cs: Couldn't find AgentCircuit for CircuitCode {0}.", CircuitCode);
87 }
88 } 78 }
89 } 79 }
90 80