aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
diff options
context:
space:
mode:
authorMelanie Thielker2014-09-15 23:15:27 +0200
committerMelanie Thielker2014-09-15 23:15:27 +0200
commit8014ce7f1aaec0c418248e2e24a65c3cff0b3d27 (patch)
treeb532bf6357d352d9dae923a470d9c0a1100bf7d3 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
parentReinstate closing the client if CloseAgen returns false. This was part (diff)
downloadopensim-SC-8014ce7f1aaec0c418248e2e24a65c3cff0b3d27.zip
opensim-SC-8014ce7f1aaec0c418248e2e24a65c3cff0b3d27.tar.gz
opensim-SC-8014ce7f1aaec0c418248e2e24a65c3cff0b3d27.tar.bz2
opensim-SC-8014ce7f1aaec0c418248e2e24a65c3cff0b3d27.tar.xz
Fix a nullref in a debug message. If we have no SceneAgent, we can't output data from it.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 3539100..99e7aba 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -2055,12 +2055,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2055 { 2055 {
2056 ClientLogoutsDueToNoReceives++; 2056 ClientLogoutsDueToNoReceives++;
2057 2057
2058 m_log.WarnFormat( 2058 if (client.SceneAgent != null)
2059 "[LLUDPSERVER]: No packets received from {0} agent of {1} for {2}ms in {3}. Disconnecting.", 2059 {
2060 client.SceneAgent.IsChildAgent ? "child" : "root", client.Name, timeoutTicks, m_scene.Name); 2060 m_log.WarnFormat(
2061 "[LLUDPSERVER]: No packets received from {0} agent of {1} for {2}ms in {3}. Disconnecting.",
2062 client.SceneAgent.IsChildAgent ? "child" : "root", client.Name, timeoutTicks, m_scene.Name);
2061 2063
2062 if (client.SceneAgent != null && !client.SceneAgent.IsChildAgent) 2064 if (!client.SceneAgent.IsChildAgent)
2063 client.Kick("Simulator logged you out due to connection timeout."); 2065 client.Kick("Simulator logged you out due to connection timeout.");
2066 }
2064 } 2067 }
2065 2068
2066 if (!m_scene.CloseAgent(client.AgentId, true)) 2069 if (!m_scene.CloseAgent(client.AgentId, true))