logic: Fixed crashes and halting during indexing

* Fixed CPPSqliteException being thrown due to not properly destructed statement in addError
* Fixed indexer getting stuck after building caches because MessageFinishedParsing was interrupted
* removed Message::cancel() method and all related code

bug id = 105
This commit is contained in:
Eberhard Graether
2016-06-29 14:10:26 +02:00
parent ba3316008a
commit cba0cfad65
13 changed files with 78 additions and 83 deletions
@@ -27,7 +27,7 @@ Task::TaskState TaskGroupSequential::update()
std::shared_ptr<Task> task = m_tasks[m_taskIndex];
TaskState state = task->process(false);
TaskState state = task->processTask();
if (state == Task::STATE_FINISHED && size_t(m_taskIndex + 1) == m_tasks.size())
{
@@ -47,7 +47,7 @@ void TaskGroupSequential::interrupt()
{
for (int i = m_taskIndex; i >= 0; i--)
{
m_tasks[i]->process(true);
m_tasks[i]->interruptTask();
}
}
}
@@ -56,6 +56,6 @@ void TaskGroupSequential::revert()
{
for (int i = m_tasks.size() - 1; i >= 0; i--)
{
m_tasks[i]->process(true);
m_tasks[i]->interruptTask();
}
}