mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
forward McClient error as Task error
Signed-off-by: iTrooz <hey@itrooz.fr>
This commit is contained in:
parent
fe8f755b43
commit
cf2b413f29
3 changed files with 4 additions and 4 deletions
|
|
@ -25,8 +25,8 @@ void ServerPingTask::executeTask() {
|
|||
qDebug() << "Online players: " << m_outputOnlinePlayers;
|
||||
emitSucceeded();
|
||||
});
|
||||
QObject::connect(client, &McClient::failed, this, [this]() {
|
||||
emitFailed();
|
||||
QObject::connect(client, &McClient::failed, this, [this](QString error) {
|
||||
emitFailed(error);
|
||||
});
|
||||
|
||||
// Delete McClient object when done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue