From f87b555a87ed84ea1bde76f3a0666d5aebfcb8e4 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 19 Jul 2006 21:46:00 +0000 Subject: Removed all that lastcreate and wantclose craq from dns.cpp (WHAT THE FUCK WERE THE FIREDNS GUYS SMOKING) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4454 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/dns.cpp') 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; } -- cgit v1.2.3