forward McClient error as Task error

Signed-off-by: iTrooz <hey@itrooz.fr>
This commit is contained in:
iTrooz
2025-01-25 20:10:26 +01:00
parent fe8f755b43
commit cf2b413f29
3 changed files with 4 additions and 4 deletions

View File

@ -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