mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
on failure, print names of servers that didn't connect
This commit is contained in:
parent
1dc52d3bf5
commit
86a3190385
2 changed files with 20 additions and 0 deletions
|
@ -213,6 +213,24 @@ void ACClientApp::notifyPacketVersionMismatch() {
|
|||
finish(1);
|
||||
}
|
||||
|
||||
void ACClientApp::printFailedServers() {
|
||||
if (!_sawEntityServer) {
|
||||
qDebug() << "EntityServer";
|
||||
}
|
||||
if (!_sawAudioMixer) {
|
||||
qDebug() << "AudioMixer";
|
||||
}
|
||||
if (!_sawAvatarMixer) {
|
||||
qDebug() << "AvatarMixer";
|
||||
}
|
||||
if (!_sawAssetServer) {
|
||||
qDebug() << "AssetServer";
|
||||
}
|
||||
if (!_sawMessagesMixer) {
|
||||
qDebug() << "MessagesMixer";
|
||||
}
|
||||
}
|
||||
|
||||
void ACClientApp::finish(int exitCode) {
|
||||
auto nodeList = DependencyManager::get<NodeList>();
|
||||
|
||||
|
@ -230,5 +248,6 @@ void ACClientApp::finish(int exitCode) {
|
|||
nodeThread->quit();
|
||||
nodeThread->wait();
|
||||
|
||||
printFailedServers();
|
||||
QCoreApplication::exit(exitCode);
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ private slots:
|
|||
private:
|
||||
NodeList* _nodeList;
|
||||
void timedOut();
|
||||
void printFailedServers();
|
||||
void finish(int exitCode);
|
||||
bool _verbose;
|
||||
|
||||
|
|
Loading…
Reference in a new issue