Skip to content

Commit

Permalink
Fix possible negative timeout on socket select
Browse files Browse the repository at this point in the history
  • Loading branch information
adammitchelldev committed Jan 15, 2021
1 parent 048c839 commit 5c4b40f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenRA.Game/Server/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ public Server(List<IPEndPoint> endpoints, ServerSettings settings, ModData modDa
if (LobbyInfo.GlobalSettings.UseNewNetcode && State == ServerState.GameStarted)
{
localTimeout = serverGame.MillisToNextNetFrame * 1000;
if (localTimeout < 0)
localTimeout = 0;
}
else
{
Expand Down

0 comments on commit 5c4b40f

Please sign in to comment.