voipplugins/accountcreationplugin/engine/src/acphttphandler.cpp
branchRCL_3
changeset 20 65a3ef1d5bd0
parent 9 bddb6d4447db
equal deleted inserted replaced
18:8c9c07ad8b6b 20:65a3ef1d5bd0
   493                 
   493                 
   494                 // HTTP error occurred, it's safer to restart the connection.
   494                 // HTTP error occurred, it's safer to restart the connection.
   495                 iConnectionOpen = EFalse;
   495                 iConnectionOpen = EFalse;
   496                 iSession.Close();
   496                 iSession.Close();
   497                 iConnection.Close();
   497                 iConnection.Close();
   498                 
   498                 iSocketServer.Close();
   499                 // Reopen session.
   499                 // Reopen session.
   500                 iSession.OpenL();
   500                 iSession.OpenL();
   501                 }
   501                 }
   502             }
   502             }
   503             break;
   503             break;
   519     
   519     
   520     // HTTP error occurred, it's safer to restart the connection.
   520     // HTTP error occurred, it's safer to restart the connection.
   521     iConnectionOpen = EFalse;
   521     iConnectionOpen = EFalse;
   522     iSession.Close();
   522     iSession.Close();
   523     iConnection.Close();
   523     iConnection.Close();
   524     
   524     iSocketServer.Close();
   525     // Reopen session.
   525     // Reopen session.
   526     TRAP_IGNORE( iSession.OpenL() );
   526     TRAP_IGNORE( iSession.OpenL() );
   527     
   527     
   528     return KErrNone;
   528     return KErrNone;
   529     }
   529     }