From 399e250e9759383ea6a68e90c151b8150483b145 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 16 Jul 2006 14:31:14 +0000 Subject: Same adjustment git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4411 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dnsqueue.cpp') diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 677c9d7e4..dff13def5 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -305,13 +305,13 @@ void ZapThisDns(int fd) if (x) { - if (x->resolver1.GetFD() != -1) + if (x->resolver1.GetFD() > 0) { log(DEBUG,"Whacked resolver1"); dns_close(x->resolver1.GetFD()); } - if (x->resolver2.GetFD() != -1) + if (x->resolver2.GetFD() > 0) { log(DEBUG,"Whacked resolver2"); dns_close(x->resolver2.GetFD()); -- cgit v1.3.1-10-gc9f91