engine/src/HttpEventHandler.cpp
branchsymbian1
changeset 80 ea2321db6cb6
parent 60 4d230e702aa3
child 90 d0c0c3e6f7a1
--- a/engine/src/HttpEventHandler.cpp	Sat May 01 14:42:23 2010 +0100
+++ b/engine/src/HttpEventHandler.cpp	Mon May 03 15:18:30 2010 +0100
@@ -193,12 +193,14 @@
 		case THTTPEvent::ESucceeded:
 			{
 			DP("Transaction Successful");
+			iRespBodyFile.Close();
 			aTransaction.Close();
 			iHttpClient->ClientRequestCompleteL(KErrNone);
 			} break;
 		case THTTPEvent::EFailed:
 			{
 			DP("Transaction Failed");
+			iRespBodyFile.Close();
 			aTransaction.Close();
 			
 			if(iLastStatusCode == HTTPStatus::EOk || iLastStatusCode == HTTPStatus::ECreated || iLastStatusCode == HTTPStatus::EAccepted)
@@ -222,6 +224,7 @@
 			// close off the transaction if it's an error
 			if (aEvent.iStatus < 0)
 				{
+				iRespBodyFile.Close();
 				aTransaction.Close();
 				iHttpClient->ClientRequestCompleteL(aEvent.iStatus);
 				}