summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-19 21:46:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-19 21:46:00 +0000
commitf87b555a87ed84ea1bde76f3a0666d5aebfcb8e4 (patch)
treee40194b01f75d3d278d243212ca55d0052521246
parent9221bcb5a9b029927a48a32376decc9928f32f70 (diff)
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
-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;
}