OnConnectionQueueAdd & OnConnectionQueueRemove | ConnectionInformation invalid
Revyn112 opened this issue · comments
Denis Freund commented
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
- 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;
}
- Add ConnectionQueue to server.toml
connectionQueue = true
- Start Server
- Connect with latest fresh installed dev client to server
- 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
Till Schreiber commented
fixd with nuget 15.0.111-dev