Skip to content

Commit

Permalink
Fix net48 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rans4ckeR committed Nov 19, 2022
1 parent 2a08cd8 commit ce7bdaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DXMainClient/DXGUI/Multiplayer/GameLobby/LANGameLobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ private async Task SendHostPlayerJoinedMessageAsync(CancellationToken cancellati
try
{
client = new Socket(SocketType.Stream, ProtocolType.Tcp);
#if NETFRAMEWORK
await client.ConnectAsync(IPAddress.Loopback, ProgramConstants.LAN_GAME_LOBBY_PORT);
#else
await client.ConnectAsync(IPAddress.Loopback, ProgramConstants.LAN_GAME_LOBBY_PORT, cancellationToken);
#endif

string message = PLAYER_JOIN_COMMAND +
ProgramConstants.LAN_DATA_SEPARATOR + ProgramConstants.PLAYERNAME;
Expand Down

0 comments on commit ce7bdaa

Please sign in to comment.