Utility/X11: Fix calling of std::abort() in case of failure
This commit is contained in:
parent
925c4b1ee3
commit
5752792565
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue