lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

Accepting connection does not increase ConnectionsCount? #139

Open switch-blade-stuff opened 4 years ago

switch-blade-stuff commented 4 years ago

Hello.

I am trying to figure out how to use the library and ive made a test program where client is trying to connect to a local hosted server. All works well up the point where i try to call message.SenderConnection.Accept() I then try to display current ConnectionsCount and ive noticed that it does not get increased and neither does server.Connections contain the client connection. Am i doing something wrong?

Pangamini commented 2 years ago

I think you have to wait for the Status change message first, before the connection is complete