]> source.dussan.org Git - tigervnc.git/commitdiff
Properly report connection errors to exit_vncviewer()
authorPierre Ossman <ossman@cendio.se>
Mon, 16 Nov 2020 12:38:41 +0000 (13:38 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 16 Nov 2020 12:38:41 +0000 (13:38 +0100)
vncviewer/CConn.cxx

index 234564f60ad4d63fb61f220ac4288f8859298220..ef1b21284b0f3b9e2873be88da01eaffd3bcb8bb 100644 (file)
@@ -107,9 +107,7 @@ CConn::CConn(const char* vncServerName, network::Socket* socket=NULL)
       }
     } catch (rdr::Exception& e) {
       vlog.error("%s", e.str());
-      if (alertOnFatalError)
-        fl_alert("%s", e.str());
-      exit_vncviewer();
+      exit_vncviewer(e.str());
       return;
     }
   }