Skip to content

win32u: Avoid a crash when cleaning up a monitor without an adapter.

I think this will fix the test timeouts that happen on Gitlab since !5262 (merged).

I'm not completely sure that it will, because the failure is very elusive and somehow only happening on Gitlab CI, but there's a logic behind it: we were previously enumerating monitors from the adapters we found, so every monitor enumerated had a matching adapter. We are now enumerating monitors directly, and matching their adapter next.

How we then end up with a monitor without a matching adapter is still unclear, but I think it's better to fix it like this for now, as it is plaguing MRs with failures and long timeouts.

Merge request reports

Loading