webservices/wsframework/src/sensyncrequester.cpp
changeset 23 a1df79fa35b4
parent 0 62f9d29f7211
--- a/webservices/wsframework/src/sensyncrequester.cpp	Fri Apr 16 16:07:50 2010 +0300
+++ b/webservices/wsframework/src/sensyncrequester.cpp	Fri Jun 11 14:42:58 2010 +0300
@@ -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;
     }