Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for v2.0.20 #83

Open
wants to merge 4 commits into
base: origin-v2.0.20-1733932424
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/modules/extra/m_mysql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ ModuleSQL::ModuleSQL()

void ModuleSQL::init()
{
if (mysql_library_init(0, NULL, NULL))
throw ModuleException("Unable to initialise the MySQL library!");

Dispatcher = new DispatcherThread(this);
ServerInstance->Threads->Start(Dispatcher);

Expand All @@ -399,10 +402,13 @@ ModuleSQL::~ModuleSQL()
Dispatcher->OnNotify();
delete Dispatcher;
}

for(ConnMap::iterator i = connections.begin(); i != connections.end(); i++)
{
delete i->second;
}

mysql_library_end();
}

void ModuleSQL::OnRehash(User* user)
Expand Down
Loading