summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_mysql.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp
index c7e04ba7d..a59537628 100644
--- a/src/modules/extra/m_mysql.cpp
+++ b/src/modules/extra/m_mysql.cpp
@@ -419,6 +419,9 @@ class SQLConnection : public classbase
void DoLeadingQuery()
{
+ if (!CheckConnection())
+ return;
+
/* Parse the command string and dispatch it to mysql */
SQLrequest& req = queue.front();
log(DEBUG,"DO QUERY: %s",req.query.q.c_str());