mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
Motivation: It's possible someone deregistered a Selectable while Selector.whenReady(...) is processed and an even for the now deregistered Selectable is ready. In this case we crashed (due a force-unwrap) on linux. Modifications: - Skip the processing of the Selectable if deregistered (by replacing force-unwrap with an if let). - Add unit test. Result: No more crashes caused by this on Linux