mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-21 19:26:58 +02:00
Panics during Window serialization can kill listener threads #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LGUG2Z on GitHub (Oct 26, 2021).
Originally assigned to: @LGUG2Z on GitHub.
https://github.com/LGUG2Z/komorebi/blob/6ae59671a2c100dfd75e00ec19606a46b1faa929/komorebi/src/window.rs#L59
The current
Serializeimplementation for Window is full ofexpectcalls which will panic on the running thread if ever encountered. I have encountered a few of these in the last few days when running at more verbose logging levels.These should be replaced with calls to
serde::ser::Error::customto return aResultso that serialization errors can be handled gracefully without requiring a full restart of the application following a panic on a listener thread.