sipplugins/sippsystemstatemonitor/src/sipvpnmonitorao.cpp
branchRCL_3
changeset 13 822e1f077722
parent 2 1e1cc61f56c3
--- a/sipplugins/sippsystemstatemonitor/src/sipvpnmonitorao.cpp	Tue May 25 13:04:58 2010 +0300
+++ b/sipplugins/sippsystemstatemonitor/src/sipvpnmonitorao.cpp	Wed Jun 09 10:04:26 2010 +0300
@@ -191,9 +191,11 @@
     // SIP deregistration has been completed. Stop the guard timer and tell
     // the VPN client about it.
     iGuardTimer->Cancel();
-
-    iProperty.Set( KPSVpnSipUid, KVpnSipState, ESipDeregisterCompleted );
-    iCount = 0;
+    if (iState == CSipSystemStateMonitor::EVpnInitiating)
+        {
+        iProperty.Set( KPSVpnSipUid, KVpnSipState, ESipDeregisterCompleted );
+        iCount = 0;
+        }
     }
 
 // -----------------------------------------------------------------------------