diff options
author | Oren Hurvitz | 2013-09-18 15:55:42 +0300 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-10-15 00:12:56 +0100 |
commit | f106ba87ca92b477b32a84aa246e4b4481b0980b (patch) | |
tree | ed2908479255e86056b364f9dc3b5ddc1eba7ca7 /OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs | |
parent | This is Npgsql2.0.12.0-bin-ms-net3.5sp1 (diff) | |
download | opensim-SC_OLD-f106ba87ca92b477b32a84aa246e4b4481b0980b.zip opensim-SC_OLD-f106ba87ca92b477b32a84aa246e4b4481b0980b.tar.gz opensim-SC_OLD-f106ba87ca92b477b32a84aa246e4b4481b0980b.tar.bz2 opensim-SC_OLD-f106ba87ca92b477b32a84aa246e4b4481b0980b.tar.xz |
Made terrain uploads thread-safe
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs b/OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs index b8d8b10..2d74eaf 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateTerrainXferHandler.cs | |||
@@ -78,7 +78,10 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
78 | /// <param name="data"></param> | 78 | /// <param name="data"></param> |
79 | public void XferReceive(IClientAPI remoteClient, ulong xferID, uint packetID, byte[] data) | 79 | public void XferReceive(IClientAPI remoteClient, ulong xferID, uint packetID, byte[] data) |
80 | { | 80 | { |
81 | if (mXferID == xferID) | 81 | if (mXferID != xferID) |
82 | return; | ||
83 | |||
84 | lock (this) | ||
82 | { | 85 | { |
83 | if (m_asset.Data.Length > 1) | 86 | if (m_asset.Data.Length > 1) |
84 | { | 87 | { |
@@ -99,7 +102,6 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
99 | if ((packetID & 0x80000000) != 0) | 102 | if ((packetID & 0x80000000) != 0) |
100 | { | 103 | { |
101 | SendCompleteMessage(remoteClient); | 104 | SendCompleteMessage(remoteClient); |
102 | |||
103 | } | 105 | } |
104 | } | 106 | } |
105 | } | 107 | } |