PureSwift / Socket

Swift async/await based socket
MIT License
116 stars 7 forks source link

Removed assertion failure when poll() on invalid socket #6

Closed osy closed 1 year ago

osy commented 1 year ago

This is a valid error condition that can be hit when, for example, connect() is called and returned error. The socket is in an invalid state but this assertion failure crashes the app before proper error handling can be done elsewhere.