aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-03 14:18:17 +0000
committerJustin Clarke Casey2008-10-03 14:18:17 +0000
commit8c55f3eaa671f22012a567138b6ee55b4c3e4941 (patch)
treed4c4ebb5b13a235b5609ef035bd7ac3870e44c7c /OpenSim/Region
parentPrevent attachments to be persisted in the destination region when the (diff)
downloadopensim-SC_OLD-8c55f3eaa671f22012a567138b6ee55b4c3e4941.zip
opensim-SC_OLD-8c55f3eaa671f22012a567138b6ee55b4c3e4941.tar.gz
opensim-SC_OLD-8c55f3eaa671f22012a567138b6ee55b4c3e4941.tar.bz2
opensim-SC_OLD-8c55f3eaa671f22012a567138b6ee55b4c3e4941.tar.xz
* minor: remove warnings (the code cleaners strike again)
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs6
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs1
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs3
-rw-r--r--OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs7
4 files changed, 7 insertions, 10 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 1c7bbec..af760ae 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -783,8 +783,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
783 783
784 ClientLoop(); 784 ClientLoop();
785 } 785 }
786 } 786 }
787 //Todo set as Generic Exception again.
788 catch (System.Exception e) 787 catch (System.Exception e)
789 { 788 {
790 if (e is ThreadAbortException) 789 if (e is ThreadAbortException)
@@ -794,7 +793,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
794 StatsManager.SimExtraStats.AddAbnormalClientThreadTermination(); 793 StatsManager.SimExtraStats.AddAbnormalClientThreadTermination();
795 794
796 // Don't let a failure in an individual client thread crash the whole sim. 795 // Don't let a failure in an individual client thread crash the whole sim.
797 m_log.ErrorFormat("[CLIENT]: Client thread for {0} {1} crashed. Logging them out. Exception {2}", Name, AgentId, e); 796 m_log.ErrorFormat(
797 "[CLIENT]: Client thread for {0} {1} crashed. Logging them out. Exception {2}", Name, AgentId, e);
798 798
799 try 799 try
800 { 800 {
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
index a1118cb..78a916d 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
@@ -762,7 +762,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
762 { 762 {
763 Packet packet = item.Packet; 763 Packet packet = item.Packet;
764 764
765
766 // Assign sequence number here to prevent out of order packets 765 // Assign sequence number here to prevent out of order packets
767 if (packet.Header.Sequence == 0) 766 if (packet.Header.Sequence == 0)
768 { 767 {
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
index 81c789a..39ade56 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
@@ -413,10 +413,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
413 } 413 }
414 } 414 }
415 415
416
417 private static int ScaleThrottle(int value, int curmax, int newmax) 416 private static int ScaleThrottle(int value, int curmax, int newmax)
418 { 417 {
419 return (value / curmax) * newmax; 418 return (int)((value / (float)curmax) * newmax);
420 } 419 }
421 420
422 public byte[] GetThrottlesPacked(float multiplier) 421 public byte[] GetThrottlesPacked(float multiplier)
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
index 2eb1618..76fb141 100644
--- a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
+++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
@@ -268,10 +268,9 @@ namespace OpenSim.Region.Environment.Modules.Framework
268 { 268 {
269 return ProcessQueue(m_dhttpMethod,agentID, caps); 269 return ProcessQueue(m_dhttpMethod,agentID, caps);
270 })); 270 }));
271 271
272 bool boolval = false;
273 // This will persist this beyond the expiry of the caps handlers 272 // This will persist this beyond the expiry of the caps handlers
274 boolval = m_scene.AddHTTPHandler(capsBase + EventQueueGetUUID.ToString() + "/", EventQueuePath2); 273 m_scene.AddHTTPHandler(capsBase + EventQueueGetUUID.ToString() + "/", EventQueuePath2);
275 274
276 Random rnd = new Random(System.Environment.TickCount); 275 Random rnd = new Random(System.Environment.TickCount);
277 lock (m_ids) 276 lock (m_ids)
@@ -421,7 +420,7 @@ namespace OpenSim.Region.Environment.Modules.Framework
421 string capuuid = path.Replace("/CAPS/EQG/",""); 420 string capuuid = path.Replace("/CAPS/EQG/","");
422 capuuid = capuuid.Substring(0, capuuid.Length - 1); 421 capuuid = capuuid.Substring(0, capuuid.Length - 1);
423 422
424 UUID AvatarID = UUID.Zero; 423// UUID AvatarID = UUID.Zero;
425 UUID capUUID = UUID.Zero; 424 UUID capUUID = UUID.Zero;
426 if (UUID.TryParse(capuuid, out capUUID)) 425 if (UUID.TryParse(capuuid, out capUUID))
427 { 426 {