aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index 209c0e0..be6f7ef 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -790,12 +790,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
790 // client. m_packetSent will be set to true if a packet is sent 790 // client. m_packetSent will be set to true if a packet is sent
791 m_scene.ClientManager.ForEachSync(ClientOutgoingPacketHandler); 791 m_scene.ClientManager.ForEachSync(ClientOutgoingPacketHandler);
792 792
793 // If a packet was sent, only do a minimum length context switch to allow 793 // If nothing was sent, sleep for the minimum amount of time before a
794 // other parts of the code to do work. If nothing was sent, sleep for the 794 // token bucket could get more tokens
795 // minimum amount of time before a token bucket could get more tokens 795 if (!m_packetSent)
796 if (m_packetSent)
797 Thread.Sleep(0);
798 else
799 Thread.Sleep((int)TickCountResolution); 796 Thread.Sleep((int)TickCountResolution);
800 } 797 }
801 catch (Exception ex) 798 catch (Exception ex)