Skip to content

Commit

Permalink
[修复]1. 尝试修复类型转换编译异常
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Jul 6, 2024
1 parent 3cf8418 commit bd6e81e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions GameFrameX.NetWork/BaseNetWorkChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,9 @@ public virtual async Task WriteAsync(IMessage messageObject, int uniId = 0, int

var messageData = _messageEncoder.Handler(messageObject);

if (IsWebSocket)
if (IsWebSocket && AppSession is WebSocketSession webSocketSession)
{
if (AppSession is WebSocketSession webSocketSession)
{
await webSocketSession.SendAsync(messageData);
}
await webSocketSession.SendAsync(messageData);
}
else
{
Expand Down

0 comments on commit bd6e81e

Please sign in to comment.