diff options
author | Justin Clark-Casey (justincc) | 2012-09-25 21:35:39 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-09-25 21:35:39 +0100 |
commit | 4fc0cfba3ce1e6545e334f8e34a0e5b45274081e (patch) | |
tree | 9ab2bc50763d2858ccd5632294d6697574bd1d4c /OpenSim/Region/Physics | |
parent | Documenting object-related events (diff) | |
download | opensim-SC_OLD-4fc0cfba3ce1e6545e334f8e34a0e5b45274081e.zip opensim-SC_OLD-4fc0cfba3ce1e6545e334f8e34a0e5b45274081e.tar.gz opensim-SC_OLD-4fc0cfba3ce1e6545e334f8e34a0e5b45274081e.tar.bz2 opensim-SC_OLD-4fc0cfba3ce1e6545e334f8e34a0e5b45274081e.tar.xz |
Fix occasional race condition failure when creating new clothing/body parts in the viewer or updating existing assets.
On creating these items, the viewer sends a UDP AssetUploadRequest followed by a CreateInventoryItem.
It was possible for the CreateInventoryItem/UpdateInventoryItem to occasionally outrace the AssetUploadRequest and fail to find an initialized Xfer object, at which point the item create would fail.
So instead we always set up a Xfer object on either the asset or inventory item update request.
This does not introduce a new race because code already exists to delay the item operation until the asset is uploaded if necessary (but this only worked if the xfer object already existed)
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions