diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index aea94fd720a7524ae28f012c139b985b7d1db218..2ea6e5936dd2f3c43db1a5647e9081406a7990eb 100644
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -850,7 +850,6 @@ bool LLTextureFetchWorker::doWork(S32 param)
 				mState = WAIT_HTTP_REQ;	
 
 				mFetcher->addToHTTPQueue(mID);
-				mSentRequest = QUEUED;
 				// Will call callbackHttpGet when curl request completes
 				std::vector<std::string> headers;
 				headers.push_back("Accept: image/x-j2c");
@@ -937,11 +936,6 @@ bool LLTextureFetchWorker::doWork(S32 param)
 			{
 				mFileSize = mBufferSize;
 			}
-			else //the file size is unknown
-			{
-				mFileSize = mBufferSize + 1 ; //flag the file is not fully loaded.
-			}
-
 			U8* buffer = new U8[mBufferSize];
 			if (cur_size > 0)
 			{