summaryrefslogtreecommitdiff
path: root/src/dnsqueue.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-29 00:19:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-29 00:19:35 +0000
commit0bf908e49c957ce35ac194a0c9b739f22d76182e (patch)
tree839be4613f600d34ff5c3285ba3f5840aac24b11 /src/dnsqueue.cpp
parentbbad4e536234949a1ce480e6c6f901c884621c5e (diff)
Optimizing to not use so much cpu with high user loads
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2691 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dnsqueue.cpp')
-rw-r--r--src/dnsqueue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 3b6bd2103..c0f516e74 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -264,6 +264,7 @@ void dns_poll(int fdcheck)
* just to be safe so we dont get any more events
* about it.
*/
- SE->DelFd(fdcheck);
+ if (SE)
+ SE->DelFd(fdcheck);
}