telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.cpp
changeset 69 b982c3e940f3
parent 44 8b72faa1200f
child 73 70d75957b98f
--- a/telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.cpp	Mon Aug 09 17:43:08 2010 +0100
+++ b/telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.cpp	Tue Sep 14 17:55:14 2010 +0100
@@ -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