FabianTerhorst / coreclr-module

Old alt:V CoreClr (.NET Core Common Language Runtime) community made module. New: https://github.com/altmp/coreclr-module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OnConnectionQueueAdd & OnConnectionQueueRemove | ConnectionInformation invalid

Revyn112 opened this issue · comments

Description of the problem

OnConnectionQueueAdd and OnConnectionQueueRemove throws a error in the Server Log.
Server: 15.0-dev332
Nuget: 15.0.110-dev

OnConnectionQueueAdd Invalid connectionInfo 2850246277424
OnConnectionQueueRemove Invalid connectionInfo 2850246277424

Reproduction steps

  1. Using this code:
        private async Task OnConnectionQueueAdd(IConnectionInfo connectionInfo)
        {
                Console.WriteLine("Accepted client");
                connectionInfo.Accept();
        }

        private Task OnConnectionQueueRemove(IConnectionInfo _)
        {
            Console.WriteLine("Player removed from the queue, even if I accept the connection now it's handled!");
            return Task.CompletedTask;
        }

        public override void OnStart()
        {
            AltAsync.OnConnectionQueueAdd += OnConnectionQueueAdd;
            AltAsync.OnConnectionQueueRemove += OnConnectionQueueRemove;
        }
  1. Add ConnectionQueue to server.toml
    connectionQueue = true
  2. Start Server
  3. Connect with latest fresh installed dev client to server
  4. Getting above logs, functions will not executed.

Expected behaviour

ConnectionInformation shouldn't be invalid and functions should be executed.

Additional context

No response

Operating system

Windows 11

Version

15.0-dev332

Crashdump ID

No response

Reproduction tested

  • I confirm that I have made sure that this issue is also present on the newest dev version

fixd with nuget 15.0.111-dev