summaryrefslogtreecommitdiff
path: root/src/dnsqueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dnsqueue.cpp')
-rw-r--r--src/dnsqueue.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 5562b2299..610288673 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -179,14 +179,15 @@ public:
userrec* usr = NULL;
if (resolver1.HasResult())
{
+ usr = Find(u);
+ if ((usr) && (usr->dns_done))
+ return true;
if (resolver1.GetFD() != 0)
{
hostname = resolver1.GetResult();
- log(DEBUG,"REVERSE RESULT! %s",hostname.c_str());
- usr = Find(u);
if (usr)
{
- if (usr->registered > 3)
+ if ((usr->registered > 3) && (hostname == ""))
{
usr->dns_done = true;
return true;