[Modify] Polish it
This commit is contained in:
parent
9f519e0646
commit
78e15a566e
@ -1432,8 +1432,10 @@ namespace WebSocketSharp.Server
|
|||||||
public void SendToAsync (string data, string id, Action<bool> completed)
|
public void SendToAsync (string data, string id, Action<bool> completed)
|
||||||
{
|
{
|
||||||
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