Chykary / FizzySteamworks

A transport for Mirror using Steam / Steamworks.NET
299 stars 32 forks source link

Fix OnConnectionStatusChanged not being called on server builds #60

Open dylanpdx opened 2 months ago

dylanpdx commented 2 months ago

I encountered an issue where OnConnectionStatusChanged was not being called on a server build, which in turn caused incoming connections to not be accepted and time out.

It seems the reason for this is that server callbacks need to be registered with CreateGameServer instead of Create.

Once this change was made, OnConnectionStatusChanged is called properly, and the server can accept incoming connections.