securitydialogs/lockclient/src/lockaccessextension.cpp
changeset 59 881d92421467
parent 31 b12d1c188e6e
child 66 67b3e3c1fc87
equal deleted inserted replaced
53:25dd1e8b2663 59:881d92421467
   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);