Skip to content

fix the io failure for hotplug-in device#4982

Merged
Alexays merged 2 commits intoAlexays:masterfrom
Mrpaoo:bug-fix
Apr 13, 2026
Merged

fix the io failure for hotplug-in device#4982
Alexays merged 2 commits intoAlexays:masterfrom
Mrpaoo:bug-fix

Conversation

@Mrpaoo
Copy link
Copy Markdown
Contributor

@Mrpaoo Mrpaoo commented Apr 9, 2026

related issue #4901. When remove the device that need power-management, Waybar would crash due to uncatch exception

@Mrpaoo
Copy link
Copy Markdown
Contributor Author

Mrpaoo commented Apr 9, 2026

fix the io failure problem mentioned at #4901. For hot-plugin device, it is inevitable to face io failure especially when you create a ifstream obj and using operator >> to access it while you remove your device, and this is the time when crash happen.
Here operator>> may throw an exception and outer try-catch blk cant catch it. So just catch it and do nothing

@Alexays Alexays merged commit 3a321d9 into Alexays:master Apr 13, 2026
9 checks passed
@Alexays
Copy link
Copy Markdown
Owner

Alexays commented Apr 13, 2026

Thanks!

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.

2 participants