webservices/wsframework/src/sensyncrequester.cpp
branchGCC_SURGE
changeset 32 6b5547c1e247
parent 23 a1df79fa35b4
--- a/webservices/wsframework/src/sensyncrequester.cpp	Fri Jun 18 15:01:02 2010 +0100
+++ b/webservices/wsframework/src/sensyncrequester.cpp	Thu Jul 22 16:44:27 2010 +0100
@@ -148,7 +148,11 @@
                                      MSenProperties* /*aResponseTransportProperties*/)
     {
     // NONE of the errors between transport and session are handled in this level:
-    delete apError;
+    if(apError)
+    	{
+    	delete apError;
+    	apError = NULL;
+    	}
     return aErrorCode; // simply bounce the error back to the caller
     }
 
@@ -176,7 +180,8 @@
         }
     // Now stop the SYNC wait in the SubmitL, so that the main thread 
     // of the Serene Core Active Scheduler can continue it's execution
-    iSchedulerWait.AsyncStop();
+    if(iSchedulerWait.IsStarted())
+    	iSchedulerWait.AsyncStop();
     return aTxnId;
     }
 
@@ -195,7 +200,8 @@
         }
     // Now stop the SYNC wait in the SubmitL, so that the main thread 
     // of the Serene Core Active Scheduler can continue it's execution
-    iSchedulerWait.AsyncStop();
+    if(iSchedulerWait.IsStarted())
+    	iSchedulerWait.AsyncStop();
     return aTxnId;
     }