Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the stop callback to be cancelled when already disconnected
#614 fixed the case were we would cancel the handshake in progress, but it did not account for the race where we have not switched the state to connecting yet because we have not obtained the lock. While I could only get this to happen in a test its likely it possible in the real world if the timing is exactly perfect
- Loading branch information