-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exception in DisposeAsync. Fixes #305
If the connection is not in a known state (Connected or Failed), we'll just shut down the socket, which may be logged on the server as an aborted connection. This should prevent failure to shut down the session when an exception is thrown, leaking connections to the server.
- Loading branch information
Showing
1 changed file
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters