diff options
author | Melanie | 2009-10-12 15:11:01 +0100 |
---|---|---|
committer | Melanie | 2009-10-12 15:11:01 +0100 |
commit | 50f509d600dd0fe172d5c026a42e229fbcdc3fcd (patch) | |
tree | 847569e552590333b2d1cb837705050c029cd797 /OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs | |
parent | Merge branch 'master' into vehicles (diff) | |
parent | Fix selling objects (diff) | |
download | opensim-SC-50f509d600dd0fe172d5c026a42e229fbcdc3fcd.zip opensim-SC-50f509d600dd0fe172d5c026a42e229fbcdc3fcd.tar.gz opensim-SC-50f509d600dd0fe172d5c026a42e229fbcdc3fcd.tar.bz2 opensim-SC-50f509d600dd0fe172d5c026a42e229fbcdc3fcd.tar.xz |
Merge branch 'master' into vehicles
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs index 2f1face..5877779 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs | |||
@@ -74,6 +74,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
74 | 74 | ||
75 | public bool SendPackets(LLClientView client, int maxpack) | 75 | public bool SendPackets(LLClientView client, int maxpack) |
76 | { | 76 | { |
77 | if (client == null) | ||
78 | return false; | ||
79 | |||
77 | if (m_currentPacket <= m_stopPacket) | 80 | if (m_currentPacket <= m_stopPacket) |
78 | { | 81 | { |
79 | int count = 0; | 82 | int count = 0; |
@@ -202,6 +205,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
202 | 205 | ||
203 | private bool SendFirstPacket(LLClientView client) | 206 | private bool SendFirstPacket(LLClientView client) |
204 | { | 207 | { |
208 | if (client == null) | ||
209 | return false; | ||
210 | |||
205 | if (m_asset == null) | 211 | if (m_asset == null) |
206 | { | 212 | { |
207 | m_log.Warn("[J2KIMAGE]: Sending ImageNotInDatabase for texture " + TextureID); | 213 | m_log.Warn("[J2KIMAGE]: Sending ImageNotInDatabase for texture " + TextureID); |
@@ -234,6 +240,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
234 | 240 | ||
235 | private bool SendPacket(LLClientView client) | 241 | private bool SendPacket(LLClientView client) |
236 | { | 242 | { |
243 | if (client == null) | ||
244 | return false; | ||
245 | |||
237 | bool complete = false; | 246 | bool complete = false; |
238 | int imagePacketSize = ((int)m_currentPacket == (TexturePacketCount())) ? LastPacketSize() : IMAGE_PACKET_SIZE; | 247 | int imagePacketSize = ((int)m_currentPacket == (TexturePacketCount())) ? LastPacketSize() : IMAGE_PACKET_SIZE; |
239 | 248 | ||