diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 14:30:50 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 14:30:50 +0000 |
commit | 863d8a3d08f7c4089683822f3d1e5544b6419ec6 (patch) | |
tree | 4f53f454297bb32ced919eeea31f561217462fdc | |
parent | d7875763890e79ddcc1f4f105d7b896b0d5e5d83 (diff) |
Adjustment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4410 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/dnsqueue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 6d1ba0840..9c74d726c 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -244,13 +244,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()); |