Do not forcibly schedule a SLTM transmission less than 4s from the last one.

git-svn-id: http://yate.null.ro/svn/yate/trunk@3511 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-08-25 16:32:29 +00:00
parent 022cf4ca04
commit 8f552ebcc3
1 changed files with 5 additions and 2 deletions

View File

@ -947,8 +947,11 @@ void SS7MTP3::notify(SS7Layer2* link)
Debug(this,DebugInfo,"%sLinkset has %u/%u active links [%p]",tmp.null()?"":tmp.c_str(),m_active,m_total,this);
#endif
if (link) {
if (link->operational())
link->m_check = Time::now() + 50000 + (::random() % 200000);
if (link->operational()) {
u_int64_t t = Time::now() + 50000 + (::random() % 200000);
if ((t < link->m_check) || (t - 4000000 > link->m_check))
link->m_check = t;
}
else
link->m_unchecked = m_checklinks;
}