Error: Host in the wrong state {8}

Howdy,

One of my players says he cannot create a multiplayer game. In the log it apparently creates a game without issues, returns NetworkError.Ok but right after the log shows this error:
Host in the wrong state {8}

I cannot replicate this error on my end and I have no idea what it’s supposed to mean.

It is interesting scenario. I will try to explain what’s happened under the hood.

  1. You connected to relay server
    to accomplish this connection you need to receive connection event from relay, before that relay server considered as NotYetConnected
  2. By some reason, you decided to close your game
  3. During game closing library is trying to disconnect relay server
  4. But relay server in the state “has not connected yet” (actually error code 8 mean library has been received connection from relay, and connection has been established but user has not notified about this yet) so, library put the warning in the log (it is not error it is just warning)