[Modify] Polish it

This commit is contained in:
sta 2021-11-21 17:34:45 +09:00
parent 9f519e0646
commit 78e15a566e

View File

@ -1432,8 +1432,10 @@ namespace WebSocketSharp.Server
public void SendToAsync (string data, string id, Action<bool> completed)
{
IWebSocketSession session;
if (!TryGetSession (id, out session)) {
var msg = "The session could not be found.";
throw new InvalidOperationException (msg);
}