wmdrm/camese/wmdrmdladefaulthttpplugin/src/wmdrmdladefaulthttpmanager.cpp
branchRCL_3
changeset 20 29f3cf766061
parent 14 8cdda00a45da
--- a/wmdrm/camese/wmdrmdladefaulthttpplugin/src/wmdrmdladefaulthttpmanager.cpp	Tue May 25 12:59:35 2010 +0300
+++ b/wmdrm/camese/wmdrmdladefaulthttpplugin/src/wmdrmdladefaulthttpmanager.cpp	Wed Jun 09 09:59:43 2010 +0300
@@ -162,6 +162,8 @@
             HandleDownloadComplete( KErrCancel );
             }
         }
+	// Close the HTTP session in use
+    iHttpSession.Close();
 
     CleanupConnection();
     DeleteUsernamePassword();
@@ -565,6 +567,9 @@
     GetConnectionInfoL( info );
     iIapNumber = info.iIapId;
 
+    // Close old session:
+    iHttpSession.Close();    
+
     // Open session
     iHttpSession.OpenL();
     RStringPool pool = iHttpSession.StringPool();
@@ -730,7 +735,6 @@
     iHdrFields.Reset();
 
     iHttpTransaction.Close();
-    iHttpSession.Close();
 
     if ( !iKeepAlive )
         {