summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-14 18:24:14 -0400
committerAdam <Adam@anope.org>2010-09-14 18:24:14 -0400
commite7ac33fd622ae6e21bc9af684832b7de5cfa0c0c (patch)
tree1a9f5208bf3109db46b3b73c0030bcaba4039523 /include/modules.h
parent630f3815ce5e1eac9dd8f82601c955131c3dce68 (diff)
Cleanup DNS requests when modules are unloaded, fixes unloading m_dnsbl during the middle of queries
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/modules.h b/include/modules.h
index 60a16a978..ac76a4534 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1294,17 +1294,6 @@ class service_reference : public dynamic_reference<T>
inline T *operator->()
{
- if (this->invalid)
- {
- this->invalid = false;
- this->ref = NULL;
- }
- if (!this->ref)
- {
- this->ref = static_cast<T *>(ModuleManager::GetService(this->name));
- if (this->ref)
- this->ref->AddReference(this);
- }
return this->ref;
}
};