diff -r 3b2fb68d23df -r b852595f5cbe hotspotfw/hsserver/src/hotspotserver.cpp --- a/hotspotfw/hsserver/src/hotspotserver.cpp Thu Jul 15 19:54:09 2010 +0300 +++ b/hotspotfw/hsserver/src/hotspotserver.cpp Thu Aug 19 10:59:40 2010 +0300 @@ -165,9 +165,7 @@ // Activate notifications for IAP check purposes. Done with every server startup. // When EWlanConnectionModeNotConnected is received we can cancel this. iMgtClient = CWlanMgmtClient::NewL(); -#ifndef __WINS__ - iMgtClient->ActivateNotificationsL( *this ); -#endif + ActivateWlanNotificationsL(); } // ----------------------------------------------------------------------------- @@ -278,7 +276,7 @@ delete plugin; DEBUG1("CHotSpotServer::CheckIapsL find client error: %d", error ); - if ( error == KErrNotFound ) + if ( error != KErrNone ) { // Remove from database RCmManagerExt cmManager; @@ -304,6 +302,19 @@ } // ----------------------------------------------------------------------------- +// ActivateWlanNotificationsL +// ----------------------------------------------------------------------------- +// +void CHotSpotServer::ActivateWlanNotificationsL() + { + DEBUG("CHotSpotServer::ActivateWlanNotificationsL"); +#ifndef __WINS__ + iMgtClient->CancelNotifications(); + iMgtClient->ActivateNotificationsL( *this ); +#endif + } + +// ----------------------------------------------------------------------------- // NewSessionL // ----------------------------------------------------------------------------- //