diff -r d0d9cc530d21 -r f45cd1ad4667 telephonyserverplugins/common_tsy/commontsy/src/mmpacket/Cmmpacketservicetsy.cpp --- a/telephonyserverplugins/common_tsy/commontsy/src/mmpacket/Cmmpacketservicetsy.cpp Thu Sep 02 21:42:07 2010 +0300 +++ b/telephonyserverplugins/common_tsy/commontsy/src/mmpacket/Cmmpacketservicetsy.cpp Mon Oct 04 02:16:52 2010 +0300 @@ -1989,14 +1989,15 @@ if ( KErrNone != trapError ) { + //reset request handle to indicate the request is no longer ongoing + iTsyReqHandleStore->FindAndResetTsyReqHandle(aTsyReqHandle); CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, trapError ); } else if ( KErrNone != ret ) { CMmPacketServiceTsy::ReqCompleted( iTsyReqHandle, ret ); } - - if ( EMultimodePacketServiceReqHandleUnknown != iReqHandleType ) + else if ( EMultimodePacketServiceReqHandleUnknown != iReqHandleType ) { // Save request handle type @@ -2005,11 +2006,10 @@ #else iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, iTsyReqHandle ); #endif // REQHANDLE_TIMER - // We've finished with this value now. Clear it so it doesn't leak - // up to any other instances of this method down the call stack - iReqHandleType = EMultimodePacketServiceReqHandleUnknown; } - + // We've finished with this value now. Clear it so it doesn't leak + // up to any other instances of this method down the call stack + iReqHandleType = EMultimodePacketServiceReqHandleUnknown; return KErrNone; } @@ -4112,5 +4112,16 @@ return iMaxActiveServices; } + +//----------------------------------------------------------------------------- +// TBool CMmPacketServiceTsy::ResetReqHandle +// Resets request handle in the req handle store +//----------------------------------------------------------------------------- +// +TBool CMmPacketServiceTsy::ResetReqHandle( const TTsyReqHandle aTsyReqHandle ) + { + return iTsyReqHandleStore->FindAndResetTsyReqHandle( aTsyReqHandle ); + } + // End of File