mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
chore: remove double spaces from logs
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
b69dbc2224
commit
584dc47da5
64 changed files with 224 additions and 222 deletions
|
|
@ -18,19 +18,19 @@ unsigned getOnlinePlayers(QJsonObject data)
|
|||
|
||||
void ServerPingTask::executeTask()
|
||||
{
|
||||
qDebug() << "Querying status of " << QString("%1:%2").arg(m_domain).arg(m_port);
|
||||
qDebug() << "Querying status of" << QString("%1:%2").arg(m_domain).arg(m_port);
|
||||
|
||||
// Resolve the actual IP and port for the server
|
||||
McResolver* resolver = new McResolver(nullptr, m_domain, m_port);
|
||||
connect(resolver, &McResolver::succeeded, this, [this](QString ip, int port) {
|
||||
qDebug() << "Resolved Address for" << m_domain << ": " << ip << ":" << port;
|
||||
qDebug().nospace().noquote() << "Resolved address for " << m_domain << ": " << ip << ":" << port;
|
||||
|
||||
// Now that we have the IP and port, query the server
|
||||
McClient* client = new McClient(nullptr, m_domain, ip, port);
|
||||
|
||||
connect(client, &McClient::succeeded, this, [this](QJsonObject data) {
|
||||
m_outputOnlinePlayers = getOnlinePlayers(data);
|
||||
qDebug() << "Online players: " << m_outputOnlinePlayers;
|
||||
qDebug() << "Online players:" << m_outputOnlinePlayers;
|
||||
emitSucceeded();
|
||||
});
|
||||
connect(client, &McClient::failed, this, [this](QString error) { emitFailed(error); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue