mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-22 19:09:09 +02:00
communicate when ServerPingTask succeeds/fails
This commit is contained in:
parent
9ce5eaaa0c
commit
0c6f78dee2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user