predictivesearch/adapters/contacts/src/cpcscontactstore.cpp
branchRCL_3
changeset 45 34879f5cfc63
parent 35 4ae315f230bc
child 58 d4f567ce2e7c
--- a/predictivesearch/adapters/contacts/src/cpcscontactstore.cpp	Wed Jun 09 09:26:27 2010 +0300
+++ b/predictivesearch/adapters/contacts/src/cpcscontactstore.cpp	Mon Jun 21 15:24:27 2010 +0300
@@ -332,8 +332,12 @@
 		iNextState = EFetchContactBlock;
         // Delay the next fetch since contact fetch is CPU intensive,
         // this will give other threads a chance to use CPU
-        iTimer.After( iStatus, KTimerInterval); // 100 milliseconds
-        SetActive();
+	    if(!IsActive())
+	        {
+            iTimer.After( iStatus, KTimerInterval); // 100 milliseconds
+            SetActive();
+	        }
+
 	}
 	
 }
@@ -361,8 +365,11 @@
 		iNextState = EFetchContactBlock;
         // Delay the next fetch since contact fetch is CPU intensive,
         // this will give other threads a chance to use CPU
-		iTimer.After( iStatus, KTimerInterval);   // 100 milliseconds
-        SetActive();
+        if(!IsActive())
+            {
+            iTimer.After( iStatus, KTimerInterval); // 100 milliseconds
+            SetActive();
+            }
 	}
 	
 	PRINT ( _L("End CPcsContactStore::VPbkSingleContactOperationFailed") );