From d2806090aef48cff16d1ba2ae88ab0775f6a0489 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 4 Mar 2008 10:12:39 +0000 Subject: Cleaned up a couple compiler warnings. --- ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs | 16 ++++++++-------- ThirdParty/3Di/LoadBalancer/TcpServer.cs | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'ThirdParty/3Di') diff --git a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs index 267fe3c..981d96a 100644 --- a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs +++ b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs @@ -738,11 +738,11 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer IClientAPI controller = null; foreach (uint code in circuits) - { + { m_log.InfoFormat("[BALANCER] "+"circuit code : {0}", code); if (scene.ClientManager.TryGetClient(code, out controller)) - { + { // Divide the presences evenly over the set of subscenes ClientView client = (ClientView) controller; client.PacketProcessingEnabled = (( (i + myID) % sceneURL.Length) == 0); @@ -750,15 +750,15 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer m_log.InfoFormat("[SPLITSCENE] === SplitRegion {0}: SP.PacketEnabled {1}", region.RegionID, client.PacketProcessingEnabled); if (!client.PacketProcessingEnabled) - { + { // stopping clientview thread client.Stop(); - } + } + + ++i; + } + } - ++i; - } - } - scene.splitID = myID; scene.SynchronizeScene = new Scene.SynchronizeSceneHandler(SynchronizeScenes); isSplit = true; diff --git a/ThirdParty/3Di/LoadBalancer/TcpServer.cs b/ThirdParty/3Di/LoadBalancer/TcpServer.cs index 4e651b6..2d46294 100644 --- a/ThirdParty/3Di/LoadBalancer/TcpServer.cs +++ b/ThirdParty/3Di/LoadBalancer/TcpServer.cs @@ -175,7 +175,7 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer { } // while (true) } - catch (Exception e) + catch (Exception) { //MainLog.Instance.Verbose("TCPSERVER", e.ToString()); //MainLog.Instance.Verbose("TCPSERVER", e.StackTrace); -- cgit v1.1