If an ElkSocketConnection.connect() call fails, the socket needs to be destroyed explicitly because the failure may have been called by our own timeout -- in which case it could still eventually end up connecting at some point and the connection would be left open with no one knowing about it.
If an
ElkSocketConnection.connect()
call fails, the socket needs to be destroyed explicitly because the failure may have been called by our own timeout -- in which case it could still eventually end up connecting at some point and the connection would be left open with no one knowing about it.