[Modify] Replace it

This commit is contained in:
sta 2021-05-07 19:18:37 +09:00
parent 196d5d7899
commit f7b4e1a31c

View File

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