[Modify] Replace it

This commit is contained in:
sta 2021-05-07 19:13:02 +09:00
parent d9e436488c
commit 26f3a5682f

View File

@ -713,7 +713,8 @@ namespace WebSocketSharp.Net
/// </exception>
public IAsyncResult BeginGetContext (AsyncCallback callback, Object state)
{
CheckDisposed ();
if (_disposed)
throw new ObjectDisposedException (_objectName);
if (_prefixes.Count == 0) {
var msg = "The listener has no URI prefix on which listens.";