We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d35c33 commit 8745660Copy full SHA for 8745660
src/modules/extra/m_mysql.cpp
@@ -412,6 +412,9 @@ ModuleSQL::ModuleSQL()
412
413
void ModuleSQL::init()
414
{
415
+ if (mysql_library_init(0, NULL, NULL))
416
+ throw ModuleException("Unable to initialise the MySQL library!");
417
+
418
Dispatcher = new DispatcherThread(this);
419
ServerInstance->Threads.Start(Dispatcher);
420
}
@@ -424,10 +427,13 @@ ModuleSQL::~ModuleSQL()
424
427
Dispatcher->OnNotify();
425
428
delete Dispatcher;
426
429
430
431
for(ConnMap::iterator i = connections.begin(); i != connections.end(); i++)
432
433
delete i->second;
434
435
436
+ mysql_library_end();
437
438
439
void ModuleSQL::ReadConfig(ConfigStatus& status)
0 commit comments