Merge pull request #4000 from mstoeckl/wayland-conn-close
Close program when Wayland connection hangs up
This commit is contained in:
commit
9415c61d75
@ -1283,7 +1283,10 @@ bool CIrrDeviceWayland::run()
|
|||||||
{
|
{
|
||||||
os::Timer::tick();
|
os::Timer::tick();
|
||||||
|
|
||||||
wl_display_dispatch_pending(m_display);
|
if (wl_display_dispatch_pending(m_display) == -1)
|
||||||
|
{
|
||||||
|
closeDevice();
|
||||||
|
}
|
||||||
|
|
||||||
for (unsigned int i = 0; i < m_events.size(); i++)
|
for (unsigned int i = 0; i < m_events.size(); i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user