Reconnect for client

Hello everyone. I’m doing reconnect for a client when he’s in a gaming session with the host. I am processing the discount error on the client and trying to find a session and connect to it, but the session is not there.On the host side, when the client logs out, I update the session and the update is successful. In the logs from the host, I see that steam writes “Discarding inactive session ConnectionShutdown” after discounting the client and after a couple of seconds says "LogOnlineSession: STEAM: Updating lobby connectivity to true."Can you tell me where to dig?

Hello @Jimmy_Volmer ,Welcome to the forums!
From what I can see in the error you’re showing, it looks like when the client disconnects, Steam needs a few seconds to mark the lobby as available again. Even though the UpdateSession completes successfully on the host, during that brief period the session may not appear in the FindSessions results.

As a test, you could try adding a small delay before calling FindSessions on the client when you detect the disconnect. For example, using a Set Timer by Event for 2 or 3 seconds and, once that time has passed, performing the session search again.

I’m also including a post I found and some documentation that might be useful.

Documentation:

If this doesn’t solve the issue, could you show how you have the reconnection logic implemented? Seeing the code would help identify where the problem might be occurring.
Hope it helps!