From fef4db0ee471f493cce98310fc0a24224cfc8295 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 21 Mar 2018 07:28:49 -0700 Subject: [PATCH] make easier to comment out --- xwords4/relay/udpager.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/xwords4/relay/udpager.cpp b/xwords4/relay/udpager.cpp index 4f97ebbf9..b414ca622 100644 --- a/xwords4/relay/udpager.cpp +++ b/xwords4/relay/udpager.cpp @@ -90,18 +90,23 @@ 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(); MutexLock ml( &m_addrTimeMapLock ); - map::const_iterator iter = - m_addrTimeMap.find( *saddr ); + map::const_iterator iter = + m_addrTimeMap.find( *saddr ); 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; }