diff options
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_mysql.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index d0716bd90..824a75e46 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -773,6 +773,7 @@ void DispatcherThread::Run() LoadDatabases(Parent->Conf, Parent->PublicServerInstance, Parent); } + conn = NULL; Parent->ConnMutex.Lock(); for (ConnMap::iterator i = Connections.begin(); i != Connections.end(); i++) { @@ -806,9 +807,10 @@ void DispatcherThread::Run() void DispatcherThread::OnNotify() { + SQLConnection* conn; while (1) { - SQLConnection* conn = NULL; + conn = NULL; Parent->ConnMutex.Lock(); for (ConnMap::iterator iter = Connections.begin(); iter != Connections.end(); iter++) { |