[Modify] Polish it

This commit is contained in:
sta 2019-10-14 22:11:09 +09:00
parent 3e6f9e512d
commit 1d394de40c

View File

@ -198,7 +198,9 @@ namespace WebSocketSharp.Net
} }
set { set {
checkDisposed (); if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (value != null && value.Length == 0) if (value != null && value.Length == 0)
throw new ArgumentException ("An empty string.", "value"); throw new ArgumentException ("An empty string.", "value");