[Modify] Polish it
This commit is contained in:
parent
bf482bf84f
commit
6493ac1f1b
@ -967,8 +967,10 @@ namespace WebSocketSharp.Server
|
|||||||
public void CloseSession (string id, ushort code, string reason)
|
public void CloseSession (string id, ushort code, string reason)
|
||||||
{
|
{
|
||||||
IWebSocketSession session;
|
IWebSocketSession session;
|
||||||
|
|
||||||
if (!TryGetSession (id, out session)) {
|
if (!TryGetSession (id, out session)) {
|
||||||
var msg = "The session could not be found.";
|
var msg = "The session could not be found.";
|
||||||
|
|
||||||
throw new InvalidOperationException (msg);
|
throw new InvalidOperationException (msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user