Utility/X11: Fix calling of std::abort() in case of failure

This commit is contained in:
Lynix 2017-01-18 22:41:44 +01:00
parent 925c4b1ee3
commit 5752792565
1 changed files with 1 additions and 2 deletions

View File

@ -107,11 +107,10 @@ namespace Nz
sharedConnection = xcb_connect(nullptr, &screen_nbr); sharedConnection = xcb_connect(nullptr, &screen_nbr);
// Opening display failed: The best we can do at the moment is to output a meaningful error message // Opening display failed: The best we can do at the moment is to output a meaningful error message
// and cause an abnormal program termination
if (!sharedConnection || xcb_connection_has_error(sharedConnection)) if (!sharedConnection || xcb_connection_has_error(sharedConnection))
{ {
NazaraError("Failed to open xcb connection"); NazaraError("Failed to open xcb connection");
std::abort(); return false;
} }
OpenConnection(); OpenConnection();