summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-01 22:46:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-01 22:46:06 +0000
commit1a12f849b82ffa7d6cab5685c35700b6bda798f1 (patch)
tree81315d9175071a5582bc56e63db8f4c60f047e1d /src
parent7b37009dca64565dbd0143035e8729b9b45ecc8b (diff)
More dns fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@945 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dnsqueue.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index d74c73ada..cf1fb7484 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -198,10 +198,8 @@ public:
userrec* usr = NULL;
if (resolver->HasResult())
{
- log(DEBUG,"resolver says result available!");
if (resolver->GetFD() != 0)
{
- log(DEBUG,"Resolver FD is not 0, getting %s",u);
std::string hostname = resolver->GetResult();
usr = Find(u);
if (usr)
@@ -264,9 +262,11 @@ void dns_poll()
// are any ready, or stale?
if (dnsq[0].Done() || (!dnsq[0].GetFD()))
{
- log(DEBUG,"****** DNS lookup for fd %d is complete. ******",dnsq[0].GetFD());
if (dnsq[0].GetFD())
- dnsq.pop_front();
+ {
+ log(DEBUG,"****** DNS lookup for fd %d is complete. ******",dnsq[0].GetFD());
+ }
+ dnsq.pop_front();
}
}
}