diff options
author | Adam <Adam@anope.org> | 2012-09-13 13:50:25 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-09-13 13:50:25 -0400 |
commit | e39da8182472ffa85819110f199bc8b1cfc19b07 (patch) | |
tree | 88b193f6852010975e333d97e5afb29a5b7e9e6c /src | |
parent | 8597ba610b854b17d3ec5f9326ba575c4f87085d (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_mysql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |