Skip to content

Commit a3b4080

Browse files
committed
[Modify] Polish it
1 parent 14b0c2f commit a3b4080

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

websocket-sharp/Net/HttpListenerResponse.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,8 +972,10 @@ public void Close ()
972972
/// </exception>
973973
public void Close (byte[] responseEntity, bool willBlock)
974974
{
975-
if (_disposed)
976-
throw new ObjectDisposedException (GetType ().ToString ());
975+
if (_disposed) {
976+
var name = GetType ().ToString ();
977+
throw new ObjectDisposedException (name);
978+
}
977979

978980
if (responseEntity == null)
979981
throw new ArgumentNullException ("responseEntity");

0 commit comments

Comments
 (0)