sipplugins/sippsystemstatemonitor/src/sipdevicestateaware.cpp
changeset 33 b8a7e07b2677
parent 0 307788aac0a8
equal deleted inserted replaced
30:d7640adb246b 33:b8a7e07b2677
   217     if ( index >= 0 )
   217     if ( index >= 0 )
   218         iCount++;
   218         iCount++;
   219     if( iObservers.Count() == iCount)
   219     if( iObservers.Count() == iCount)
   220         {
   220         {
   221         iGuardTimer->Cancel();
   221         iGuardTimer->Cancel();
   222         iStateAwareSession.AcknowledgeStateNotification(KErrNone);        
   222         if(iState == CSipSystemStateMonitor::ESystemOffline)
   223         iCount = 0;        
   223             {
       
   224             iStateAwareSession.AcknowledgeStateNotification(KErrNone);        
       
   225             iCount = 0;
       
   226             }
   224         }	
   227         }	
   225     }
   228     }
   226 
   229 
   227 // -----------------------------------------------------------------------------
   230 // -----------------------------------------------------------------------------
   228 // CSipDeviceStateAware::EventProcessingCompleted
   231 // CSipDeviceStateAware::EventProcessingCompleted
   229 // -----------------------------------------------------------------------------
   232 // -----------------------------------------------------------------------------
   230 //
   233 //
   231 void CSipDeviceStateAware::EventProcessingCompleted()
   234 void CSipDeviceStateAware::EventProcessingCompleted()
   232     {
   235     {
   233     iGuardTimer->Cancel();
   236     iGuardTimer->Cancel();
   234     iStateAwareSession.AcknowledgeStateNotification(KErrNone);   
   237     if(iState == CSipSystemStateMonitor::ESystemOffline)
   235     iCount = 0;
   238         {
   236     }
   239         iStateAwareSession.AcknowledgeStateNotification(KErrNone);   
   237 
   240         iCount = 0;
       
   241         }
       
   242     }
       
   243