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