private HandleRemoteDisconnect ( SocketError socketError, |
||
socketError | SocketError | ProtocolNotSupported = decoder failure. |
ex | Exection that caused disconnect (if any) | |
return | void |
private void HandleRemoteDisconnect(SocketError socketError, Exception ex)
{
try
{
_socket.Close();
IsConnected = false;
_disconnectAction(this, ex ?? CreateException(socketError));
}
catch (Exception exception)
{
ChannelFailure(this, exception);
}
}