mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
forward McClient error as Task error
Signed-off-by: iTrooz <hey@itrooz.fr>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user