webservices/wshostletconnection/src/senhostletconnectionimpl.cpp
changeset 23 a1df79fa35b4
parent 0 62f9d29f7211
child 38 d9641c85af2b
--- a/webservices/wshostletconnection/src/senhostletconnectionimpl.cpp	Fri Apr 16 16:07:50 2010 +0300
+++ b/webservices/wshostletconnection/src/senhostletconnectionimpl.cpp	Fri Jun 11 14:42:58 2010 +0300
@@ -763,8 +763,8 @@
     iTxnIdBuffer.Set(reinterpret_cast<TUint8*>(&iTxnId),
                      sizeof(TInt),
                      sizeof(TInt));
-                     
-    SetActive();
+    if(!IsActive())
+    	SetActive();
 #ifdef EKA2
     iActive->AsyncOpsArrayL().AppendL(this);
 #else
@@ -939,7 +939,8 @@
     CActiveScheduler::Add(this);
     // Initial subscription
     iFileProgressProperty.Subscribe(iStatus);
-    SetActive();
+    if(!IsActive())
+    	SetActive();
     iStatus = KRequestPending;
     }
 
@@ -961,7 +962,8 @@
     {
     // Resubscribe before processing new value to prevent missing updates(!):
 	iFileProgressProperty.Subscribe( iStatus );
-    SetActive();
+    if(!IsActive())
+    	SetActive();
     iStatus = KRequestPending;
 
     TLSLOG_L( KSenHostletConnectionLogChannelBase + iConnectionID, KSenServiceConnectionStatusLogLevel, "CSenFileProgressObserver::RunL" );