summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dnsqueue.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 5572c3247..e1a856c34 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -170,15 +170,15 @@ public:
usr->dns_done = true;
return true;
}
- }
- if (hostname != "")
- {
- resolver2.ForwardLookup(hostname, true);
- if (resolver2.GetFD() != -1)
+ if (hostname != "")
{
- dnslist[resolver2.GetFD()] = this;
- if (usr)
- user_fd_to_dns[usr->fd] = this;
+ resolver2.ForwardLookup(hostname, true);
+ if (resolver2.GetFD() != -1)
+ {
+ dnslist[resolver2.GetFD()] = this;
+ if (usr)
+ user_fd_to_dns[usr->fd] = this;
+ }
}
}
}