equal
deleted
inserted
replaced
619 case ESenInternalError: |
619 case ESenInternalError: |
620 { |
620 { |
621 TLSLOG_L(KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel ,"SubmitL - ESenInternalError"); |
621 TLSLOG_L(KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel ,"SubmitL - ESenInternalError"); |
622 retVal = KErrSenInternal; |
622 retVal = KErrSenInternal; |
623 } |
623 } |
|
624 break; |
624 default: |
625 default: |
625 { |
626 { |
626 TLSLOG_L(KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel ,"SubmitL - default"); |
627 TLSLOG_L(KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel ,"SubmitL - default"); |
627 #ifdef _SENDEBUG |
628 #ifdef _SENDEBUG |
628 if(status.Int() == KErrPermissionDenied) |
629 if(status.Int() == KErrPermissionDenied) |
2509 { |
2510 { |
2510 iConnection.CancelRequest(actualTransID); |
2511 iConnection.CancelRequest(actualTransID); |
2511 } |
2512 } |
2512 else |
2513 else |
2513 { |
2514 { |
2514 TMessage message = ipSenServiceDispatcher->GetMessageFromQueue(aTransactionID); |
2515 TMessage message = ipSenServiceDispatcher->GetMessageFromQueue(aTransactionID); |
2515 CSenAsyncOperation* pAsyncOp = message.iSenAsyncOperation; |
2516 CSenAsyncOperation* pAsyncOp = message.iSenAsyncOperation; |
2516 if (pAsyncOp) |
2517 if (pAsyncOp) |
2517 { |
2518 { |
2518 TInt idx = AsyncOpsArrayL().Find(pAsyncOp); |
2519 TInt idx(-1); |
2519 if (idx >= 0) |
2520 TRAP( retVal, |
2520 { |
2521 idx = AsyncOpsArrayL().Find(pAsyncOp); |
2521 AsyncOpsArrayL().Remove(idx); |
2522 if (idx >= 0) |
2522 } |
2523 { |
2523 pAsyncOp->iActive = NULL; |
2524 AsyncOpsArrayL().Remove(idx); |
|
2525 } |
|
2526 ); |
|
2527 pAsyncOp->iActive = NULL; |
2524 |
2528 |
2525 pAsyncOp->Cancel(); |
2529 pAsyncOp->Cancel(); |
2526 delete pAsyncOp; |
2530 delete pAsyncOp; |
2527 pAsyncOp = NULL; |
2531 pAsyncOp = NULL; |
2528 } |
2532 } |