mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
优化了节点连接
This commit is contained in:
@@ -201,13 +201,18 @@ namespace Serein.Library.Network.WebSocketCommunication.Handle
|
||||
/// </summary>
|
||||
/// <param name="context">此次请求的上下文</param>
|
||||
/// <returns></returns>
|
||||
public async Task HandleAsync(WebSocketMsgContext context)
|
||||
public void Handle(WebSocketMsgContext context)
|
||||
{
|
||||
foreach (var module in MyHandleModuleDict.Values)
|
||||
{
|
||||
await module.HandleAsync(context);
|
||||
if (context.Handle)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_ = module.HandleAsync(context);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user