Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic with mirroring #1047

Merged
merged 3 commits into from
Dec 11, 2024
Merged

Fix panic with mirroring #1047

merged 3 commits into from
Dec 11, 2024

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Dec 10, 2024

It seems cd9ff0b broke mirroring.
Though it's also a bug that if any of these if conditions is not met,
the data will not be initialized.

Fixes pop-os/cosmic-epoch#1341.
Having if conditions for these is unnecessary when they should never be
reached. (This is commonly unwrapped in `smithay`.)

Some of these else conditions fail to call `data_init.init` with a new
id, so they'd result in a crash later anyway.
@ids1024 ids1024 requested a review from a team December 10, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monitors won't mirror
2 participants