output: update state even if no owner exists (#8044)

This commit is contained in:
trianta 2024-10-09 04:24:05 -05:00 committed by GitHub
parent 6ce07ee864
commit 223dcc8bac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ SP<CWlOutput> CWLOutputResource::getResource() {
} }
void CWLOutputResource::updateState() { void CWLOutputResource::updateState() {
if (!monitor || !owner || owner->defunct) if (!monitor || (owner && owner->defunct))
return; return;
if (resource->version() >= 2) if (resource->version() >= 2)