on failure, print names of servers that didn't connect

This commit is contained in:
Seth Alves 2016-10-05 14:45:32 -07:00
parent 1dc52d3bf5
commit 86a3190385
2 changed files with 20 additions and 0 deletions

View file

@ -213,6 +213,24 @@ void ACClientApp::notifyPacketVersionMismatch() {
finish(1); 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) { void ACClientApp::finish(int exitCode) {
auto nodeList = DependencyManager::get<NodeList>(); auto nodeList = DependencyManager::get<NodeList>();
@ -230,5 +248,6 @@ void ACClientApp::finish(int exitCode) {
nodeThread->quit(); nodeThread->quit();
nodeThread->wait(); nodeThread->wait();
printFailedServers();
QCoreApplication::exit(exitCode); QCoreApplication::exit(exitCode);
} }

View file

@ -38,6 +38,7 @@ private slots:
private: private:
NodeList* _nodeList; NodeList* _nodeList;
void timedOut(); void timedOut();
void printFailedServers();
void finish(int exitCode); void finish(int exitCode);
bool _verbose; bool _verbose;