mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
fix: add missing returns after emitSucceeded
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit e27246c3f9)
This commit is contained in:
parent
eacebcc153
commit
1ff7d25352
|
|
@ -76,6 +76,7 @@ void LaunchTask::executeTask()
|
|||
if (!m_steps.size()) {
|
||||
state = LaunchTask::Finished;
|
||||
emitSucceeded();
|
||||
return;
|
||||
}
|
||||
state = LaunchTask::Running;
|
||||
onStepFinished();
|
||||
|
|
|
|||
|
|
@ -87,6 +87,6 @@ void LookupServerAddress::resolve(const QString& address, quint16 port)
|
|||
m_output->address = address;
|
||||
m_output->port = port;
|
||||
|
||||
emitSucceeded();
|
||||
m_dnsLookup->deleteLater();
|
||||
emitSucceeded();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,8 +145,8 @@ void Hasher::executeTask()
|
|||
} else if (m_result = m_future.result(); m_result.isEmpty()) {
|
||||
emitFailed("Empty hash!");
|
||||
} else {
|
||||
emitSucceeded();
|
||||
emit resultsReady(m_result);
|
||||
emitSucceeded();
|
||||
}
|
||||
});
|
||||
m_watcher.setFuture(m_future);
|
||||
|
|
|
|||
Loading…
Reference in a new issue