make easier to comment out

This commit is contained in:
Eric House 2018-03-21 07:28:49 -07:00
parent a8db820b68
commit fef4db0ee4

View file

@ -90,6 +90,10 @@ UDPAger::Refresh( const AddrInfo* addr )
bool
UDPAger::IsCurrent( const AddrInfo* addr )
{
bool result;
#if 0
result = false;
#else
const AddrInfo::AddrUnion* saddr = addr->saddr();
uint32_t readWhen = addr->created();
@ -99,9 +103,10 @@ UDPAger::IsCurrent( const AddrInfo* addr )
assert( m_addrTimeMap.end() != iter );
AgePair* ap = iter->second;
bool result = readWhen >= ap->created();
result = readWhen >= ap->created();
#endif
if ( !result ) {
logf( XW_LOGINFO, "%s() => %d", __func__, result );
logf( XW_LOGINFO, "%s() => false", __func__ );
}
return result;
}