MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / subtaskSucceeded

Method subtaskSucceeded

launcher/minecraft/MinecraftUpdate.cpp:129–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void 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
146void MinecraftUpdate::subtaskFailed(QString error)
147{

Callers

nothing calls this directly

Calls 2

nextFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected