mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
communicate when ServerPingTask succeeds/fails
This commit is contained in:
@ -150,8 +150,10 @@ class ServerPingTask : public Task {
|
||||
int online = client.getOnlinePlayers();
|
||||
qDebug() << "Online players: " << online;
|
||||
m_server.m_currentPlayers = online;
|
||||
emitSucceeded();
|
||||
} catch(const Exception& e) {
|
||||
qDebug() << "Failed to get online players: " << e.cause();
|
||||
emitFailed(e.cause());
|
||||
}
|
||||
});
|
||||
resolver->ping();
|
||||
|
Reference in New Issue
Block a user