[Modify] Replace it
This commit is contained in:
parent
691477b338
commit
8aaef1ef0d
@ -160,8 +160,7 @@ namespace WebSocketSharp.Net
|
|||||||
/// </exception>
|
/// </exception>
|
||||||
public void Clear ()
|
public void Clear ()
|
||||||
{
|
{
|
||||||
if (_listener.IsDisposed)
|
_listener.CheckDisposed ();
|
||||||
throw new ObjectDisposedException (_listener.GetType ().ToString ());
|
|
||||||
|
|
||||||
if (_listener.IsListening)
|
if (_listener.IsListening)
|
||||||
EndPointManager.RemoveListener (_listener);
|
EndPointManager.RemoveListener (_listener);
|
||||||
|
Loading…
Reference in New Issue
Block a user