fix issue with time of remote notifications

This commit is contained in:
Simon Morlat 2012-08-30 12:07:12 +02:00
parent 0caa3e9461
commit 29857c38c3

View file

@ -733,7 +733,12 @@ static LinphoneCoreVTable linphonec_vtable = {
}
- (BOOL)shouldAutoAcceptCall{
return lastRemoteNotificationTime!=0 && lastRemoteNotificationTime-time(NULL)<10;
if (lastRemoteNotificationTime!=0){
if ((time(NULL)-lastRemoteNotificationTime)<15)
return TRUE;
lastRemoteNotificationTime=0;
}
return FALSE;
}
- (BOOL)resignActive {