datacommsserver/esockserver/MobilityCoreProviders/src/mobilitycpractivities.cpp
changeset 2 dee179edb159
parent 0 dfb7c4ff071f
child 17 9ddb1d67ebaf
equal deleted inserted replaced
1:21d2ab05f085 2:dee179edb159
   199 			{
   199 			{
   200 		    return KNoTag | NetStateMachine::EBackward;
   200 		    return KNoTag | NetStateMachine::EBackward;
   201 			}
   201 			}
   202 		else if  (resp.iAction == TErrResponse::EPropagate || resp.iError == KErrCancel)
   202 		else if  (resp.iAction == TErrResponse::EPropagate || resp.iError == KErrCancel)
   203 			{
   203 			{
       
   204             if (resp.iError != KErrNone)
       
   205                 {
       
   206                 //The activity is already errored. The errored state needs to be reset first.
       
   207                 iContext.Activity()->SetError(KErrNone);
       
   208                 iContext.Activity()->SetError(resp.iError);
       
   209                 }
       
   210             
   204 			return KErrorTag;
   211 			return KErrorTag;
   205 			}
   212 			}
   206 		else if (resp.iAction == TErrResponse::EIgnore) // and or iError is KErrCancel
   213 		else if (resp.iAction == TErrResponse::EIgnore) // and or iError is KErrCancel
   207 			{
   214 			{
   208 			//TODO RZ: This looks inappropriate. EIgnore and EPropagate flags are not 
   215 			//TODO RZ: This looks inappropriate. EIgnore and EPropagate flags are not