Skip to content

Commit

Permalink
Send noop every 30 seconds instead of 60
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Jun 7, 2024
1 parent 2fcadc2 commit 80e3e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/CentrEDClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void Update()
{
try
{
if (DateTime.Now - TimeSpan.FromMinutes(1) > NetState.LastAction)
if (DateTime.Now - TimeSpan.FromSeconds(30) > NetState.LastAction)

Check warning on line 99 in Client/CentrEDClient.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest, CentrED)

Dereference of a possibly null reference.

Check warning on line 99 in Client/CentrEDClient.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, CentrED)

Dereference of a possibly null reference.

Check warning on line 99 in Client/CentrEDClient.cs

View workflow job for this annotation

GitHub Actions / build (macos-13, CentrED)

Dereference of a possibly null reference.
{
Send(new NoOpPacket());
}
Expand Down

0 comments on commit 80e3e74

Please sign in to comment.