diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 43167ee..f40948f 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -1635,9 +1635,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1635 | bool ready = false; | 1635 | bool ready = false; |
1636 | while (!ready && count-- > 0) | 1636 | while (!ready && count-- > 0) |
1637 | { | 1637 | { |
1638 | if (m_scene.TryGetClient(endPoint, out client) && client.IsActive) | 1638 | if (m_scene.TryGetClient(endPoint, out client) && client.IsActive && client.SceneAgent != null) |
1639 | { | 1639 | { |
1640 | LLUDPClient udpClient = ((LLClientView)client).UDPClient; | 1640 | LLClientView llClientView = (LLClientView)client; |
1641 | LLUDPClient udpClient = llClientView.UDPClient; | ||
1641 | if (udpClient != null && udpClient.IsConnected) | 1642 | if (udpClient != null && udpClient.IsConnected) |
1642 | ready = true; | 1643 | ready = true; |
1643 | else | 1644 | else |