xf 1 年之前
父節點
當前提交
41ab9df346
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Hotline.Api/Realtimes/HotlineHub.cs

+ 2 - 2
src/Hotline.Api/Realtimes/HotlineHub.cs

@@ -117,8 +117,8 @@ namespace Hotline.Api.Realtimes
             await Clients.Group(dto.GroupName).SendAsync("Send", $"{Context.ConnectionId} has left the group {dto.GroupName}.");
             await Clients.Group(dto.GroupName).SendAsync("Send", $"{Context.ConnectionId} has left the group {dto.GroupName}.");
 
 
             //check if not in any groups then disconnect the connection
             //check if not in any groups then disconnect the connection
-            if (!connection.GroupNames.Any())
-                Context.Abort();
+            //if (!connection.GroupNames.Any())
+            //    Context.Abort();
         }
         }
 
 
         #region private
         #region private