engine/src/HttpEventHandler.cpp
changeset 126 c2f1ea38ec70
parent 119 a2933afe16a7
child 163 f94dbd678dda
--- a/engine/src/HttpEventHandler.cpp	Thu Apr 29 11:55:32 2010 +0100
+++ b/engine/src/HttpEventHandler.cpp	Thu May 13 13:56:05 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);
 				}