diff options
| author | Adam <Adam@anope.org> | 2011-09-05 18:44:43 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-09-10 02:06:31 -0400 |
| commit | 63cb8ca24c0d4003343340bb8413b7f84de1a6a3 (patch) | |
| tree | d71f0cead730065dd8509e284d66b6767e7ebd25 /modules/extra | |
| parent | dc5d1fa21c20000b77bf713585333c79121a8df0 (diff) | |
Moved signal/thread/mode checking to use signal pipes
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/m_ldap.cpp | 3 | ||||
| -rw-r--r-- | modules/extra/m_mysql.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp index e1e58417c..bdb573675 100644 --- a/modules/extra/m_ldap.cpp +++ b/modules/extra/m_ldap.cpp @@ -67,8 +67,6 @@ class LDAPService : public LDAPProvider, public Thread, public Condition static const int version = LDAP_VERSION3; if (ldap_set_option(this->con, LDAP_OPT_PROTOCOL_VERSION, &version) != LDAP_OPT_SUCCESS) throw LDAPException("Unable to set protocol version for " + this->name + ": " + Anope::LastError()); - - threadEngine.Start(this); } ~LDAPService() @@ -400,6 +398,7 @@ class ModuleLDAP : public Module, public Pipe try { LDAPService *ss = new LDAPService(this, connname, server, port, admin_binddn, admin_password); + ss->Start(); this->LDAPServices.insert(std::make_pair(connname, ss)); Log(LOG_NORMAL, "ldap") << "LDAP: Successfully connected to server " << connname << " (" << server << ")"; diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp index 501e3fdff..05a85b93c 100644 --- a/modules/extra/m_mysql.cpp +++ b/modules/extra/m_mysql.cpp @@ -164,7 +164,7 @@ class ModuleSQL : public Module, public Pipe ModuleManager::Attach(i, this, 2); DThread = new DispatcherThread(); - threadEngine.Start(DThread); + DThread->Start(); OnReload(); } |
