From 022e285dcb289478d8c32bc447c8c8addaf4e343 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 21 Jan 2015 13:51:16 +0100 Subject: [PATCH] removed assert that does not make sense and is often violated (IPs are not updated very often, so can easily happen that an IP's TTL was reached. It is easier to ignore these cases than to avoid them, IPs will with next test be updated.) --- src/dns/dnsresolver.cpp | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/dns/dnsresolver.cpp b/src/dns/dnsresolver.cpp index cf997b1..58f18bc 100644 --- a/src/dns/dnsresolver.cpp +++ b/src/dns/dnsresolver.cpp @@ -151,13 +151,11 @@ string DnsResolver::get_next_ip() HostAddress host_address = ResolvedHostAddressList.front(); string destination_ip = host_address.get_ip().to_string(); - uint32_t ttl = host_address.get_ttl().get_updated_value(); rotate( ResolvedHostAddressList.begin(), ++ResolvedHostAddressList.begin(), ResolvedHostAddressList.end() ); size_t list_size_after = ResolvedHostAddressList.size(); - BOOST_ASSERT( 0 < ttl ); BOOST_ASSERT( list_size_before == list_size_after ); return destination_ip; -- 1.7.1