equal
deleted
inserted
replaced
191 iRespBodyFile.Close(); |
191 iRespBodyFile.Close(); |
192 } break; |
192 } break; |
193 case THTTPEvent::ESucceeded: |
193 case THTTPEvent::ESucceeded: |
194 { |
194 { |
195 DP("Transaction Successful"); |
195 DP("Transaction Successful"); |
|
196 iRespBodyFile.Close(); |
196 aTransaction.Close(); |
197 aTransaction.Close(); |
197 iHttpClient->ClientRequestCompleteL(KErrNone); |
198 iHttpClient->ClientRequestCompleteL(KErrNone); |
198 } break; |
199 } break; |
199 case THTTPEvent::EFailed: |
200 case THTTPEvent::EFailed: |
200 { |
201 { |
201 DP("Transaction Failed"); |
202 DP("Transaction Failed"); |
|
203 iRespBodyFile.Close(); |
202 aTransaction.Close(); |
204 aTransaction.Close(); |
203 |
205 |
204 if(iLastStatusCode == HTTPStatus::EOk || iLastStatusCode == HTTPStatus::ECreated || iLastStatusCode == HTTPStatus::EAccepted) |
206 if(iLastStatusCode == HTTPStatus::EOk || iLastStatusCode == HTTPStatus::ECreated || iLastStatusCode == HTTPStatus::EAccepted) |
205 { |
207 { |
206 iLastStatusCode = KErrNone; |
208 iLastStatusCode = KErrNone; |
220 { |
222 { |
221 DP1("<unrecognised event: %d>", aEvent.iStatus); |
223 DP1("<unrecognised event: %d>", aEvent.iStatus); |
222 // close off the transaction if it's an error |
224 // close off the transaction if it's an error |
223 if (aEvent.iStatus < 0) |
225 if (aEvent.iStatus < 0) |
224 { |
226 { |
|
227 iRespBodyFile.Close(); |
225 aTransaction.Close(); |
228 aTransaction.Close(); |
226 iHttpClient->ClientRequestCompleteL(aEvent.iStatus); |
229 iHttpClient->ClientRequestCompleteL(aEvent.iStatus); |
227 } |
230 } |
228 } break; |
231 } break; |
229 } |
232 } |