summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dns.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index d67815b2c..50114bfd3 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -72,7 +72,6 @@ Resolver* dns_classes[MAX_DESCRIPTORS];
struct in_addr servers4[8];
int i4;
int initdone = 0;
-int wantclose = 0;
int lastcreate = -1;
class s_connection
@@ -170,10 +169,6 @@ void dns_close(int fd)
ServerInstance->SE->DelFd(fd);
#endif
log(DEBUG,"DNS: dns_close on fd %d",fd);
- if (fd == lastcreate)
- {
- wantclose = 1;
- }
shutdown(fd,2);
close(fd);
return;
@@ -295,12 +290,6 @@ s_connection *dns_add_query(s_header *h)
if (connections.find(s->fd) == connections.end())
connections[s->fd] = s;
- if (wantclose == 1)
- {
- shutdown(lastcreate,2);
- close(lastcreate);
- wantclose = 0;
- }
lastcreate = s->fd;
return s;
}