Skip to content
Snippets Groups Projects
Commit f31f817e authored by Karl Stiefvater (qarl)'s avatar Karl Stiefvater (qarl)
Browse files

retry asset upload failures.

parent bb614fa8
No related branches found
No related tags found
No related merge requests found
...@@ -256,6 +256,7 @@ void LLAssetUploadResponder::result(const LLSD& content) ...@@ -256,6 +256,7 @@ void LLAssetUploadResponder::result(const LLSD& content)
lldebugs << "LLAssetUploadResponder::result from capabilities" << llendl; lldebugs << "LLAssetUploadResponder::result from capabilities" << llendl;
std::string state = content["state"]; std::string state = content["state"];
if (state == "upload") if (state == "upload")
{ {
uploadUpload(content); uploadUpload(content);
...@@ -330,6 +331,22 @@ LLNewAgentInventoryResponder::LLNewAgentInventoryResponder( ...@@ -330,6 +331,22 @@ LLNewAgentInventoryResponder::LLNewAgentInventoryResponder(
{ {
} }
// virtual
void LLNewAgentInventoryResponder::error(U32 statusNum, const std::string& reason)
{
LLAssetUploadResponder::error(statusNum, reason);
LLImportColladaAssetCache::getInstance()->assetUploaded(mVFileID, LLUUID(), FALSE);
}
//virtual
void LLNewAgentInventoryResponder::uploadFailure(const LLSD& content)
{
LLAssetUploadResponder::uploadFailure(content);
LLImportColladaAssetCache::getInstance()->assetUploaded(mVFileID, content["new_asset"], FALSE);
}
//virtual //virtual
void LLNewAgentInventoryResponder::uploadComplete(const LLSD& content) void LLNewAgentInventoryResponder::uploadComplete(const LLSD& content)
{ {
......
...@@ -74,7 +74,9 @@ public: ...@@ -74,7 +74,9 @@ public:
const LLSD& post_data, const LLSD& post_data,
const std::string& file_name, const std::string& file_name,
LLAssetType::EType asset_type); LLAssetType::EType asset_type);
virtual void error(U32 statusNum, const std::string& reason);
virtual void uploadComplete(const LLSD& content); virtual void uploadComplete(const LLSD& content);
virtual void uploadFailure(const LLSD& content);
}; };
// A base class which goes through and performs some default // A base class which goes through and performs some default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment