This changeset ensures we consistently emit a close event after a quit() call even if the server rejects. This is more of an edge case I've encountered while working on support for multiple connections as discussed in #175, so I figured it makes sense to properly close the connection in case the server does not already do this as usually expected.
Follow-up PRs will build on top of this to use dedicated open and close events as discussed in #147 and support multiple connections as discussed in #175.
This changeset ensures we consistently emit a
close
event after aquit()
call even if the server rejects. This is more of an edge case I've encountered while working on support for multiple connections as discussed in #175, so I figured it makes sense to properly close the connection in case the server does not already do this as usually expected.Follow-up PRs will build on top of this to use dedicated
open
andclose
events as discussed in #147 and support multiple connections as discussed in #175.Builds on top of #187