System.Net.Sockets.SingleSocketMultipleConnectAsync.OnFail C# (CSharp) Method

OnFail() protected method

protected OnFail ( bool abortive ) : void
abortive bool
return void
        protected override void OnFail(bool abortive)
        {
            // Close the socket if this is an abortive failure (CancelConnectAsync) 
            // or if we created it internally
            if (abortive || !_userSocket)
            {
                _socket.Dispose();
            }
        }