equal
deleted
inserted
replaced
242 iNetworkLostRoamingOngoing = EFalse; |
242 iNetworkLostRoamingOngoing = EFalse; |
243 |
243 |
244 if ( iSubService.SipProfileId() == aProfileId && |
244 if ( iSubService.SipProfileId() == aProfileId && |
245 iSubService.EnableRequestedState() != CScpSubService::EScpNoRequest ) |
245 iSubService.EnableRequestedState() != CScpSubService::EScpNoRequest ) |
246 { |
246 { |
|
247 if ( EScpDeregistered == aEvent && |
|
248 iSubService.EnableRequestedState() == CScpSubService::EScpEnabled ) |
|
249 { |
|
250 SCPLOGSTRING( "CScpPresenceHandler - EScpDeregistered -> unbind" ); |
|
251 TRAPD( err, HandleDeregistrationL( EFalse ) ); |
|
252 if ( KErrNotReady == err ) |
|
253 { |
|
254 SCPLOGSTRING( "CScpPresenceHandler - EScpDeregistered -> not ready: unbind" ); |
|
255 TRAP_IGNORE( ServerUnBindL() ); |
|
256 } |
|
257 } |
247 //if network lost, unbind context |
258 //if network lost, unbind context |
248 if ( EScpNetworkLost == aEvent ) |
259 if ( EScpNetworkLost == aEvent ) |
249 { |
260 { |
250 SCPLOGSTRING( "CScpPresenceHandler - EScpNetworkLost -> unbind" ); |
261 SCPLOGSTRING( "CScpPresenceHandler - EScpNetworkLost -> unbind" ); |
251 TRAPD( err, HandleDeregistrationL( EFalse ) ); |
262 TRAPD( err, HandleDeregistrationL( EFalse ) ); |