diff -r 79647526f98c -r 42552535c1ac iaupdate/IAD/api/client/src/iaupdatemanager.cpp --- a/iaupdate/IAD/api/client/src/iaupdatemanager.cpp Wed Sep 15 12:20:42 2010 +0300 +++ b/iaupdate/IAD/api/client/src/iaupdatemanager.cpp Wed Oct 13 14:40:19 2010 +0300 @@ -101,6 +101,15 @@ // If an operation is still active, // then DoCancel will cancel ongoing request Cancel(); + + // if server is just started then session to be created that closing can be + // done normal way + if ( UpdateType() == EIAUpdateStartServer ) + { + IAUPDATE_TRACE("[IAUPDATE] CIAUpdateManager::~CIAUpdateManager() server just started"); + UpdateClient().ConnectToApp(); + } + UpdateClient().Close(); if ( iEikEnv ) { @@ -387,7 +396,7 @@ switch ( updateType ) { case EIAUpdateStartServer: - if ( errorCode == KErrNone || errorCode == KErrAlreadyExists ) + if ( errorCode == KErrNone ) { CheckUpdatesContinue(); }