From e39da8182472ffa85819110f199bc8b1cfc19b07 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 13 Sep 2012 13:50:25 -0400 Subject: Fixed crash in m_mysql if a module is unloaded while executing a query and there is only one query in the queue to be executed. --- src/modules/extra/m_mysql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 86d9273c3..570e7d9ec 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -503,7 +503,7 @@ void DispatcherThread::Run() */ this->LockQueue(); - if (Parent->qq.front().q == i.q) + if (!Parent->qq.empty() && Parent->qq.front().q == i.q) { Parent->qq.pop_front(); Parent->rq.push_back(RQueueItem(i.q, res)); -- cgit v1.2.3