equal
deleted
inserted
replaced
812 iConnId ) |
812 iConnId ) |
813 |
813 |
814 // check whether a started connection exists which already |
814 // check whether a started connection exists which already |
815 // uses this IAP. If so, it won't need to be confirmed again |
815 // uses this IAP. If so, it won't need to be confirmed again |
816 // |
816 // |
817 TConnectionState state = iMyServer.CheckUsageOfIap( aIapId, iConnId ); |
817 if ( iMyServer.CheckUsageOfIap( aIapId, iConnId ) == EStarted ) |
818 |
|
819 if ( state == EStarted || state == EStarting || state == ERoaming ) |
|
820 { |
818 { |
821 MPMLOGSTRING( |
819 MPMLOGSTRING( |
822 "CMPMServerSession::IsConfirmFirstL - IAP already started, \ |
820 "CMPMServerSession::IsConfirmFirstL - IAP already started, \ |
823 confirm not necesary - False" ) |
821 confirm not necesary - False" ) |
824 return EFalse; |
822 return EFalse; |
1612 } |
1610 } |
1613 else if ( state == EStarted ) |
1611 else if ( state == EStarted ) |
1614 { |
1612 { |
1615 // Process error according to the fact that the connection |
1613 // Process error according to the fact that the connection |
1616 // has already been started. |
1614 // has already been started. |
1617 // |
1615 // KErrConnectionTerminated is received when user disconnects |
1618 if ( ( error == KErrCancel ) || ( error == KErrTimedOut ) ) |
1616 // connection from Settings/Connection mgr. |
|
1617 // |
|
1618 if ( ( error == KErrCancel ) || ( error == KErrTimedOut ) || ( error == KErrConnectionTerminated ) ) |
1619 { |
1619 { |
1620 neededAction = EPropagateError; |
1620 neededAction = EPropagateError; |
1621 |
1621 |
1622 MPMLOGSTRING( |
1622 MPMLOGSTRING( |
1623 "CMPMServerSession::HandleServerProcessErrorL - \ |
1623 "CMPMServerSession::HandleServerProcessErrorL - \ |