equal
deleted
inserted
replaced
160 // otherwise the client will get a callback without previously |
160 // otherwise the client will get a callback without previously |
161 // calling StartL |
161 // calling StartL |
162 HandleDownloadComplete( KErrCancel ); |
162 HandleDownloadComplete( KErrCancel ); |
163 } |
163 } |
164 } |
164 } |
|
165 // Close the HTTP session in use |
|
166 iHttpSession.Close(); |
165 |
167 |
166 CleanupConnection(); |
168 CleanupConnection(); |
167 DeleteUsernamePassword(); |
169 DeleteUsernamePassword(); |
168 iState = EConstructed; |
170 iState = EConstructed; |
169 } |
171 } |
563 |
565 |
564 TConnectionInfo info; |
566 TConnectionInfo info; |
565 GetConnectionInfoL( info ); |
567 GetConnectionInfoL( info ); |
566 iIapNumber = info.iIapId; |
568 iIapNumber = info.iIapId; |
567 |
569 |
|
570 // Close old session: |
|
571 iHttpSession.Close(); |
|
572 |
568 // Open session |
573 // Open session |
569 iHttpSession.OpenL(); |
574 iHttpSession.OpenL(); |
570 RStringPool pool = iHttpSession.StringPool(); |
575 RStringPool pool = iHttpSession.StringPool(); |
571 |
576 |
572 // Associate HTTP session with connection |
577 // Associate HTTP session with connection |
728 // set to empty |
733 // set to empty |
729 iHdrValues.Reset(); |
734 iHdrValues.Reset(); |
730 iHdrFields.Reset(); |
735 iHdrFields.Reset(); |
731 |
736 |
732 iHttpTransaction.Close(); |
737 iHttpTransaction.Close(); |
733 iHttpSession.Close(); |
|
734 |
738 |
735 if ( !iKeepAlive ) |
739 if ( !iKeepAlive ) |
736 { |
740 { |
737 CleanupConnection(); |
741 CleanupConnection(); |
738 iState = ESubmit == iState ? EConstructed : iState; |
742 iState = ESubmit == iState ? EConstructed : iState; |