diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 77b07ed..b4ac021 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -809,8 +809,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
809 | } | 809 | } |
810 | 810 | ||
811 | PacketPool.Instance.ReturnPacket(packet); | 811 | PacketPool.Instance.ReturnPacket(packet); |
812 | m_dataPresentEvent.Set(); | ||
813 | |||
812 | } | 814 | } |
813 | 815 | ||
816 | private AutoResetEvent m_dataPresentEvent = new AutoResetEvent(false); | ||
817 | |||
814 | /// <summary> | 818 | /// <summary> |
815 | /// Start the process of sending a packet to the client. | 819 | /// Start the process of sending a packet to the client. |
816 | /// </summary> | 820 | /// </summary> |
@@ -1730,6 +1734,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1730 | // Action generic every round | 1734 | // Action generic every round |
1731 | Action<IClientAPI> clientPacketHandler = ClientOutgoingPacketHandler; | 1735 | Action<IClientAPI> clientPacketHandler = ClientOutgoingPacketHandler; |
1732 | 1736 | ||
1737 | // while (true) | ||
1733 | while (base.IsRunningOutbound) | 1738 | while (base.IsRunningOutbound) |
1734 | { | 1739 | { |
1735 | m_scene.ThreadAlive(2); | 1740 | m_scene.ThreadAlive(2); |
@@ -1791,8 +1796,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1791 | 1796 | ||
1792 | // If nothing was sent, sleep for the minimum amount of time before a | 1797 | // If nothing was sent, sleep for the minimum amount of time before a |
1793 | // token bucket could get more tokens | 1798 | // token bucket could get more tokens |
1794 | if (!m_packetSent) | 1799 | //if (!m_packetSent) |
1795 | Thread.Sleep((int)TickCountResolution); | 1800 | // Thread.Sleep((int)TickCountResolution); |
1801 | m_dataPresentEvent.WaitOne(100); | ||
1796 | 1802 | ||
1797 | Watchdog.UpdateThread(); | 1803 | Watchdog.UpdateThread(); |
1798 | } | 1804 | } |