Merge pull request #4000 from mstoeckl/wayland-conn-close

Close program when Wayland connection hangs up
This commit is contained in:
Deve 2019-07-12 08:43:06 +02:00 committed by GitHub
commit 9415c61d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++)
{ {