webservices/wsoviplugin/src/wsoviservicesession.cpp
branchRCL_3
changeset 38 d9641c85af2b
parent 37 1adb97a15c2f
--- a/webservices/wsoviplugin/src/wsoviservicesession.cpp	Wed Sep 01 12:28:05 2010 +0100
+++ b/webservices/wsoviplugin/src/wsoviservicesession.cpp	Tue Sep 14 23:25:14 2010 +0300
@@ -737,15 +737,22 @@
     TLSLOG_FORMAT((KSenClientSessionLogChannelBase+aConsumer.ConnectionId(), KMinLogLevel , _L8("- ErrorCode: %d"), aErrorCode ));
     ((CWSOviPlugin&)iFramework).ProcessInboundDispatchL(this, aErrorCode, apError, aResponseTransportProperties);
     TInt answer = CanHandleErrorL();
+    TInt retVal(KErrNone);
     if (answer)
         {
-        delete apError;
-        return aConsumer.HandleErrorL(NULL, answer, aTxnId, aResponseTransportProperties);
+        if(apError)
+        	{
+        	delete apError;
+        	apError = NULL;
+        	}
+        retVal = aConsumer.HandleErrorL(NULL, answer, aTxnId, aResponseTransportProperties);
         }
     else
         {
-        return HandleErrorL(aErrorCode, apError, aTxnId, aConsumer, aResponseTransportProperties);
+        retVal = HandleErrorL(aErrorCode, apError, aTxnId, aConsumer, aResponseTransportProperties);
         }
+	TLSLOG_FORMAT((KSenClientSessionLogChannelBase+aConsumer.ConnectionId(), KMinLogLevel , _L8("CWSOviServiceSession::SendErrorToConsumerL() retruns [%d]"), retVal ));
+    return retVal;
     }