[Modify] Replace it

This commit is contained in:
sta 2020-08-31 21:00:09 +09:00
parent f9be77d0f7
commit 1cbe07b8a0

View File

@ -230,7 +230,9 @@ namespace WebSocketSharp.Net
/// </exception>
public void CopyTo (string[] array, int offset)
{
_listener.CheckDisposed ();
if (_listener.IsDisposed)
throw new ObjectDisposedException (_listener.GetType ().ToString ());
_prefixes.CopyTo (array, offset);
}