Skip to content

Commit c6b4662

Browse files
committed
[修改]1. 修改Session渠道为空的处理
1 parent a537862 commit c6b4662

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

GameFrameX.Hotfix/StartUp/AppStartUpHotfixGameByMain.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ protected override async ValueTask PackageHandler(IAppSession appSession, IMessa
7171
if (message is OuterNetworkMessage outerNetworkMessage)
7272
{
7373
var netWorkChannel = SessionManager.GetChannel(appSession.SessionID);
74+
75+
if (netWorkChannel.IsNull())
76+
{
77+
return;
78+
}
79+
7480
if (outerNetworkMessage.Header.OperationType == MessageOperationType.HeartBeat)
7581
{
7682
if (Setting.IsDebug && Setting.IsDebugReceive && Setting.IsDebugReceiveHeartBeat)

0 commit comments

Comments
 (0)