[Modify] Polish it

This commit is contained in:
sta 2021-11-20 23:20:05 +09:00
parent 6a3f4974aa
commit 9335b2e4ce

View File

@ -1294,8 +1294,10 @@ namespace WebSocketSharp.Server
public void SendTo (Stream stream, int length, string id)
{
IWebSocketSession session;
if (!TryGetSession (id, out session)) {
var msg = "The session could not be found.";
throw new InvalidOperationException (msg);
}