| 127 | } |
| 128 | |
| 129 | void MinecraftUpdate::subtaskSucceeded() |
| 130 | { |
| 131 | if(isFinished()) |
| 132 | { |
| 133 | qCritical() << "MinecraftUpdate: Subtask" << sender() << "succeeded, but work was already done!"; |
| 134 | return; |
| 135 | } |
| 136 | auto senderTask = QObject::sender(); |
| 137 | auto currentTask = m_tasks[m_currentTask].get(); |
| 138 | if(senderTask != currentTask) |
| 139 | { |
| 140 | qDebug() << "MinecraftUpdate: Subtask" << sender() << "succeeded out of order."; |
| 141 | return; |
| 142 | } |
| 143 | next(); |
| 144 | } |
| 145 | |
| 146 | void MinecraftUpdate::subtaskFailed(QString error) |
| 147 | { |