From 31d1496ffc2926c7b63eb85945804d1d3e964b2a Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 29 Apr 2021 19:34:07 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/HttpListener.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpListener.cs b/websocket-sharp/Net/HttpListener.cs index 134d7709..8ec57f26 100644 --- a/websocket-sharp/Net/HttpListener.cs +++ b/websocket-sharp/Net/HttpListener.cs @@ -188,7 +188,9 @@ namespace WebSocketSharp.Net /// public Func AuthenticationSchemeSelector { get { - CheckDisposed (); + if (_disposed) + throw new ObjectDisposedException (_objectName); + return _authSchemeSelector; }