diff options
| author | 2012-09-13 13:50:25 -0400 | |
|---|---|---|
| committer | 2012-09-13 13:50:25 -0400 | |
| commit | e39da8182472ffa85819110f199bc8b1cfc19b07 (patch) | |
| tree | 88b193f6852010975e333d97e5afb29a5b7e9e6c | |
| parent | m_cgiirc Take actions after a successful WEBIRC in the OnCheckReady hook, sto... (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.
| -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)); |
