telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.cpp
changeset 75 f45cd1ad4667
parent 42 3adadc800673
child 73 70d75957b98f
--- a/telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.cpp	Thu Sep 02 21:42:07 2010 +0300
+++ b/telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.cpp	Mon Oct 04 02:16:52 2010 +0300
@@ -230,9 +230,10 @@
         if ( KErrNone != trapError )
             {
             // error handling. Object cannot be created.
-            ret = trapError;
-            }
-        if ( KErrNone != ret )
+            ResetReqHandle(aTsyReqHandle, aIpc);
+		    ret = trapError;            
+			}
+      	if ( KErrNone != ret )
             {
             ReqCompleted( aTsyReqHandle, ret );
             }
@@ -6914,4 +6915,15 @@
     return KErrNone;
     }
 
+TBool CMmCustomTsy::ResetReqHandle( const TTsyReqHandle aTsyReqHandle, TInt aIpc )
+    {
+    TBool ret = CMmTsyBase::ResetReqHandle(aTsyReqHandle, aIpc);
+    if(!ret)
+        {
+        ret = iTsyReqHandleStore->FindAndResetTsyReqHandle( aTsyReqHandle );
+        }
+    return ret;
+    }
+    
+
 //  End of File