Skip to content

Commit

Permalink
Fix OnConnectionAccepted incorrectly allowing continuation
Browse files Browse the repository at this point in the history
  • Loading branch information
SignatureBeef committed Jan 5, 2025
1 parent d0de305 commit 622bb93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ static void OnNameCollision(object sender, Hooks.MessageBuffer.NameCollisionEven
static void OnConnectionAccepted(object? sender, HookEvents.Terraria.Netplay.OnConnectionAcceptedEventArgs args)

Check warning on line 171 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 171 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 171 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 171 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 171 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 171 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
if (!args.ContinueExecution) return;
args.ContinueExecution = false;
int slot = FindNextOpenClientSlot();
if (slot != -1)
{
Expand Down

0 comments on commit 622bb93

Please sign in to comment.