securitydialogs/lockclient/src/lockaccessextension.cpp
changeset 61 1cc4c46c2963
parent 38 e0432375ea67
child 66 67b3e3c1fc87
equal deleted inserted replaced
56:25a3fbb5e4d3 61:1cc4c46c2963
   119 			}
   119 			}
   120 		} while (numAttempts++ <3 && numberOfInstances<=0);
   120 		} while (numAttempts++ <3 && numberOfInstances<=0);
   121 		
   121 		
   122 
   122 
   123 
   123 
   124 	TInt value = -1;
   124 	TInt value = 0;
   125 	err = KErrNone;
   125 	err = KErrNone;
   126 	numAttempts = 0;
   126 	numAttempts = 0;
   127 	while( value<1 && numAttempts++ <10 )	// wait max 5 seconds
   127 	while( value==0 && numAttempts++ <10 )	// wait max 5 seconds
   128 		{
   128 		{
   129 		// process was started, but still not fully running. Give a bit more time
   129 		// process was started, but still not fully running. Give a bit more time
   130 		err = RProperty::Get(KPSUidSecurityUIs, KSecurityUIsLockInitiatorUID, value);
   130 		err = RProperty::Get(KPSUidSecurityUIs, KSecurityUIsLockInitiatorUID, value);
   131 		RDEBUG("err", err);
   131 		RDEBUG("err", err);
   132 		RDEBUG("value", value);
   132 		RDEBUG("value", value);