mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-11 22:43:04 +00:00
- Introduced a new `quarantine_socket` function to centralize error handling for socket operations, improving code clarity and maintainability. - Updated error handling in `UdpSocket` methods to utilize `quarantine_socket`, ensuring consistent logging and socket management across setup, send, and receive operations. - Added a `cancel` method to `UdpSocket` to safely cancel socket operations when the socket is not usable, enhancing robustness in error scenarios. - Introduced a `m_socket_usable` flag to track socket state, preventing operations on unusable sockets and improving overall stability.