avoid multiple defunct logs

This commit is contained in:
Vaxry 2023-08-15 18:06:11 +02:00
parent 752c003866
commit 8c52015be6

View file

@ -26,6 +26,9 @@ CWaylandResource::CWaylandResource(wl_client* client, const wl_interface* wlInte
} }
void CWaylandResource::markDefunct() { void CWaylandResource::markDefunct() {
if (m_bDefunct)
return;
Debug::log(TRACE, "[wl res %lx] now defunct", m_pWLResource); Debug::log(TRACE, "[wl res %lx] now defunct", m_pWLResource);
m_bDefunct = true; m_bDefunct = true;
} }