Animatroller.ExpanderCommunication.NettyServerHandler.ExceptionCaught C# (CSharp) Method

ExceptionCaught() public method

public ExceptionCaught ( IChannelHandlerContext context, Exception exception ) : void
context IChannelHandlerContext
exception System.Exception
return void
        public override void ExceptionCaught(IChannelHandlerContext context, Exception exception)
        {
            if (!(exception is ObjectDisposedException))
                log.Warn($"Exception in NettyServerHandler {context.Channel.Id.AsShortText()}: {exception.Message}");

            context.CloseAsync();
        }