clock2/clockengines/utilities/clockecomlistener/src/clockecomlistener.cpp
branchRCL_3
changeset 27 55d60436f00b
parent 0 f979ecb2b13e
child 67 1539a383d7b6
--- a/clock2/clockengines/utilities/clockecomlistener/src/clockecomlistener.cpp	Tue Apr 27 16:36:22 2010 +0300
+++ b/clock2/clockengines/utilities/clockecomlistener/src/clockecomlistener.cpp	Tue May 11 16:12:24 2010 +0300
@@ -179,12 +179,16 @@
     {
     __PRINTS( "CClockEComListener::Start - Entry" );
     
-    // Start the active object and listen for changes in the ECOM registry.
-    if( iEComSession )
+    if (!IsActive())
         {
-        iEComSession->NotifyOnChange( iStatus );
+       // Start the active object and listen for changes in the ECOM registry.
+        if( iEComSession )
+            {
+            iEComSession->NotifyOnChange( iStatus );
+            SetActive();
+            }
         }
-    SetActive();
+ 
     
     __PRINTS( "CClockEComListener::Start - Exit" );
     }