From 29857c38c3ad20a5775d3acc394a7f1ef9b25f1b Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 30 Aug 2012 12:07:12 +0200 Subject: [PATCH] fix issue with time of remote notifications --- Classes/LinphoneManager.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 910d7279a..82ebd8ab2 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -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 {