From e727b29753a91fd415b47a9b18ef28c016f6f599 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 24 Oct 2018 23:14:25 +0200 Subject: [PATCH] No "exit" (qFatal) for unknown VATLIB error, just error Rational: Why shutdown the client in that very case, terminate connection is enough --- src/blackcore/vatsim/networkvatlib.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blackcore/vatsim/networkvatlib.cpp b/src/blackcore/vatsim/networkvatlib.cpp index 07626f2f3..53de030f7 100644 --- a/src/blackcore/vatsim/networkvatlib.cpp +++ b/src/blackcore/vatsim/networkvatlib.cpp @@ -1494,7 +1494,9 @@ namespace BlackCore case vatServerErrorRegistered: case vatServerErrorInvalidCtrl: CLogMessage(self).info("Server: ") << self->fromFSD(msg); break; - default: qFatal("vatlib: %s (error %d)", msg, error); emit self->terminate(); + // default: qFatal("vatlib: %s (error %d)", msg, error); emit self->terminate(); + // KB: Why the hard termination? + default: CLogMessage(self).error("vatlib: %1 (error %2)") << msg << error; emit self->terminate(); break; } }