summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 02:02:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 02:02:55 +0000
commit8ceb4ed16c147d6f6075a8920981bd37528ba5e7 (patch)
tree2425b6635e39d22fd561a5dcc58555f6e22777a4 /src
parenteb1b27f8c495a3836e46858c233fa8bb0bcd8498 (diff)
Add back the auto reconnect
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4490 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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());