[Modify] Polish it
This commit is contained in:
parent
6a3f4974aa
commit
9335b2e4ce
@ -1294,8 +1294,10 @@ namespace WebSocketSharp.Server
|
|||||||
public void SendTo (Stream stream, int length, string id)
|
public void SendTo (Stream stream, int length, string id)
|
||||||
{
|
{
|
||||||
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