Motivation: In some cases, such as when an event loop has been shutdown, channel registration may fail. In these cases, we would incorrectly attempt to deregister the channel, which would fail (and in debug builds, assert). Really, we shouldn't transition into .registered until we know that we have, in fact, registered. However, we need to be cautious: we don't want to register unless we believe we're in an acceptable state to register. Modifications: Updated the state enum to perform the registration at the correct part of the state change function. Result: Harder to crash in debug mode |
||
|---|---|---|
| .. | ||
| NIOTSHTTPClient | ||
| NIOTSHTTPServer | ||
| NIOTransportServices | ||