Commits

VirLinden committed e83eb01

sh-1491 WIP

  • Participants
  • Parent commits 19585c2

Comments (0)

Files changed (1)

indra/newview/llmeshrepository.cpp

 
 const U32 MAX_TEXTURE_UPLOAD_RETRIES = 5;
 
-void dumpLLSDToFile(LLSD& content, std::string filename);
+void dumpLLSDToFile(const LLSD& content, std::string filename);
 
 std::string header_lod[] = 
 {
 		mThread(thread)
 	{
 	}
-	virtual void completedRaw(U32 status, const std::string& reason,
-							  const LLChannelDescriptors& channels,
-							  const LLIOPipe::buffer_ptr_t& buffer)
+	virtual void completed(U32 status,
+						   const std::string& reason,
+						   const LLSD& content)
 	{
 		//assert_main_thread();
 		llinfos << "completed" << llendl;
 		mThread->mPendingUploads--;
-
-		LLSD content;
-		LLBufferStream istr(channels, buffer.get());
-		if (!LLSDSerialize::fromXML(content, istr))
-		{
-			llinfos << "Failed to deserialize LLSD. " << " [" << status << "]: " << reason << llendl;
-		}
 		dumpLLSDToFile(content,"whole_model_response.xml");
 	}
 };
 }
 
 #if 1
-void dumpLLSDToFile(LLSD& content, std::string filename)
+void dumpLLSDToFile(const LLSD& content, std::string filename)
 {
 	std::ofstream of(filename);
 	LLSDSerialize::toPrettyXML(content,of);
 		mCurlRequest->process();
 	} while (mCurlRequest->getQueued() > 0);
 
+	delete mCurlRequest;
+	mCurlRequest = NULL;
+
 	// Currently a no-op.
 	mFinished = true;
 }