aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs6
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs6
2 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index f7bb817..1304e16 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -517,7 +517,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
517 /// </summary> 517 /// </summary>
518 public void Close(bool sendStop) 518 public void Close(bool sendStop)
519 { 519 {
520 IsActive = false; 520// IsActive = false;
521 // We lock here to prevent race conditions between two threads calling close simultaneously (e.g. 521 // We lock here to prevent race conditions between two threads calling close simultaneously (e.g.
522 // a simultaneous relog just as a client is being closed out due to no packet ack from the old connection. 522 // a simultaneous relog just as a client is being closed out due to no packet ack from the old connection.
523 lock (CloseSyncLock) 523 lock (CloseSyncLock)
@@ -525,7 +525,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
525 if (!IsActive) 525 if (!IsActive)
526 return; 526 return;
527 527
528 IsActive = false; 528// IsActive = false;
529 CloseWithoutChecks(sendStop); 529 CloseWithoutChecks(sendStop);
530 } 530 }
531 } 531 }
@@ -552,7 +552,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
552 OutPacket(disable, ThrottleOutPacketType.Unknown); 552 OutPacket(disable, ThrottleOutPacketType.Unknown);
553 } 553 }
554 554
555 IsActive = false; 555// IsActive = false;
556 556
557 // Shutdown the image manager 557 // Shutdown the image manager
558 ImageManager.Close(); 558 ImageManager.Close();
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index bf2db58..c260fb2 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2966,10 +2966,12 @@ namespace OpenSim.Region.Framework.Scenes
2966 try 2966 try
2967 { 2967 {
2968 ScenePresence sp = GetScenePresence(agentID); 2968 ScenePresence sp = GetScenePresence(agentID);
2969 PresenceService.LogoutAgent(sp.ControllingClient.SessionId); 2969
2970
2971 if (sp != null) 2970 if (sp != null)
2971 {
2972 PresenceService.LogoutAgent(sp.ControllingClient.SessionId);
2972 sp.ControllingClient.Close(); 2973 sp.ControllingClient.Close();
2974 }
2973 2975
2974 // BANG! SLASH! 2976 // BANG! SLASH!
2975 m_authenticateHandler.RemoveCircuit(agentID); 2977 m_authenticateHandler.RemoveCircuit(agentID);