From 8ceb4ed16c147d6f6075a8920981bd37528ba5e7 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 22 Jul 2006 02:02:55 +0000 Subject: Add back the auto reconnect git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4490 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/extra') 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()); -- cgit v1.2.3