diff options
Diffstat (limited to 'modules')
-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(); } |