From 467a79531c36664c76d2f1d55d43e6c479455985 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 8 May 2021 20:44:05 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/HttpListenerPrefixCollection.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/websocket-sharp/Net/HttpListenerPrefixCollection.cs b/websocket-sharp/Net/HttpListenerPrefixCollection.cs index 7459267e..ba250d27 100644 --- a/websocket-sharp/Net/HttpListenerPrefixCollection.cs +++ b/websocket-sharp/Net/HttpListenerPrefixCollection.cs @@ -188,8 +188,7 @@ namespace WebSocketSharp.Net /// public bool Contains (string uriPrefix) { - if (_listener.IsDisposed) - throw new ObjectDisposedException (_listener.GetType ().ToString ()); + _listener.CheckDisposed (); if (uriPrefix == null) throw new ArgumentNullException ("uriPrefix");