Unet, Connection/Disconnection problem

HI,

I’ve a little problem with the new uNet system. I’m using a custom UI in order to create a host and disonnect from a server. I’m using the StartHost() method of the NetworkBehaviour class. Creation of the host and connection to it works fine for the first time, but as soon as a the host or the client stops, I cannot restart a new host or even reconnect to a host, without re-launching the game :frowning:

Do you know why ?

Thank you in advance.

It is a bug and it has been fixed in 5.1.1 Patch 2

Ha okay thank you, is the patch available ?

As far as I know it should

I’ve installed the latest patch, but I still can’t re-connect or re-host after Stopping the game. Maybe it comes from my code:

Herre is my listener (Start method)

stopButton.onClick.AddListener (() => { StopGame();});

Here is my StopGame method:

    private void StopGame()
    {

            if(isServer)
            {
                (NetworkManager.singleton as NetworkGameManager).StopHost();
            }else{
                (NetworkManager.singleton as NetworkGameManager).StopClient();
            }

    }

Do you see something work with it ?

Thank you in advance :slight_smile:

No it is not enough for me to understand what’s going on…:slight_smile: can you attach you project and add reproducing steps? Or just generate bug about this?

I have the exact same problem, and still cannot find a solution, did you find any way to make it work, I’m working with the Google Glasses, and there is no way to close and relaunch the application, so this bug is really annoying