diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs index 5ba5df1..6cffd70 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs | |||
@@ -260,7 +260,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
260 | return false; | 260 | return false; |
261 | } | 261 | } |
262 | } | 262 | } |
263 | public bool SendPackets(LLClientView client) | 263 | public bool SendPackets(LLClientView client, int maxpack) |
264 | { | 264 | { |
265 | 265 | ||
266 | if (!m_completedSendAtCurrentDiscardLevel) | 266 | if (!m_completedSendAtCurrentDiscardLevel) |
@@ -284,7 +284,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
284 | } | 284 | } |
285 | 285 | ||
286 | int count = 0; | 286 | int count = 0; |
287 | while (SendMore && count < 5 && m_packetNumber <= m_stopPacket) | 287 | while (SendMore && count < maxpack && m_packetNumber <= m_stopPacket) |
288 | { | 288 | { |
289 | count++; | 289 | count++; |
290 | SendMore = SendPacket(client); | 290 | SendMore = SendPacket(client); |
@@ -391,6 +391,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
391 | } | 391 | } |
392 | } | 392 | } |
393 | } | 393 | } |
394 | else | ||
395 | { | ||
396 | m_packetNumber = m_stopPacket; | ||
397 | } | ||
394 | } | 398 | } |
395 | } | 399 | } |
396 | } | 400 | } |