# Why is the client trying to reconnnect when leaving a P2P lobby? 

**URL:** <https://forums.unrealengine.com/t/why-is-the-client-trying-to-reconnnect-when-leaving-a-p2p-lobby/2858486>\
**Category:** Multiplayer\
**Tags:** epic-online-services, question\
**Created:** [September 30, 2026, 7:48am UTC](https://forums.unrealengine.com/t/why-is-the-client-trying-to-reconnnect-when-leaving-a-p2p-lobby/2858486 "2026-09-30T07:48:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 30, 2026, 7:48am UTC](https://forums.unrealengine.com/t/why-is-the-client-trying-to-reconnnect-when-leaving-a-p2p-lobby/2858486/1 "2026-09-30T07:48:08Z")

</div>

Hello,

I’m working on Unity 6000.0.73, with Nintendo Switch 2 SDK 21.4.0, using eos plugin for unity 6.1.0, and eos plugin for unity switch 2 version 4.2.0. I’m also using Mirror library, with EOS Transport.

I’ve recently been able to make EOS work on Switch 2, but I’m now encountering a new issue.

The game allows multiplayer p2p lobbies, up to 2 players per lobby (one host and one client). When players decide to leave a lobby, the host goes through “_DestroyLobby()_” while the client goes through “_LeaveLobby()_”, both methods from the EOS LobbyInterface.

The issue is the following: when the client is disconnected from the lobby, it then tries to reconnect to the other player, actually succeeding to do so if the Host didn’t leave, and getting timed out otherwise. We gets a lot of subsequent bugs because of this undexpected behaviour.

I can’t find any part of the code asking the client to reconnect. Some behaviours are specified with “_AddNotifyPeerConnectionClosed_”, and I read that “_OnPeerConnectionInterrupted_” was trying to auto-recover. Could that be related? And if so, can we prevent the auto-recover when the lobby was meant to be closed?

Here are some logs on the client side, when the player left while the host was still in the lobby:

\<\<

Closed a connection with a peer. LocalUserId=[000…25f] RemoteUserId=[000…c1a] SocketId=[RbKhTUbjuwqFSRMSfYwu] SessionGuid=[sCcWAFIe3wistyuG5teW-w]

…

Attempted to close a connection request listener for a Socket ID that was not bound. NotificationId=[48]

Attempted to close a connection closed listener for a Socket ID that was not bound. NotificationId=[49]

…

Peer Connection has successfully connected. LocalUserId=[000…25f] RemoteUserId=[000…c1a] SessionGuid=[dCUYAFIe3wiXW\_iLG1i2DQ] State=[Connecting] SignalingState=[Stable] ConnectionState=[IceConnectionConnected]

Connection established. LocalUserId=[000…25f] RemoteUserId=[000…c1a] SocketId=[RbKhTUbjuwqFSRMSfYwu] ConnectionType=[EOS\_CET\_NewConnection] NetworkType=[EOS\_NCT\_DirectConnection]

\>\>

And on the host side:

\<\<

Removed peer with no connections. LocalUserId=[000…c1a] RemoteUserId=[000…25f]

Added new peer. LocalUserId=[000…c1a] RemoteUserId=[000…25f]

Accepted a connection with a peer. LocalUserId=[000…c1a] RemoteUserId=[000…25f], SocketId=[RbKhTUbjuwqFSRMSfYwu]

PeerConnection has successfully connected. LocalUserId=[000…c1a] RemoteUserId=[000…25f] SessionGuid=[dCUYAFIe3wiXW\_iLG1i2DQ] State=[Connecting] SignalingState=[Stable] ConnectionState=[IceConnectionConnected]

Connection established. LocalUserId=[000…c1a] RemoteUserId=[000…25f] SocketId=[RbKhTUbjuwqFSRMSfYwu] ConnectionType=[EOS\_CET\_NewConnection] NetworkType=[EOS\_NCT\_DirectConnection]

\>\>

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [October 14, 2026, 5:02pm UTC](https://forums.unrealengine.com/t/why-is-the-client-trying-to-reconnnect-when-leaving-a-p2p-lobby/2858486/2 "2026-10-14T17:02:57Z")

</div>

This isn’t the interrupted-connection recovery. That only kicks in when an open connection drops on its own, and it resumes the same session. Calling EOS\_P2P\_CloseConnection ends the session, so there’s nothing left to recover. Your logs show a brand-new connection (new SessionGuid, EOS\_CET\_NewConnection) right after the close, which means something on the client called EOS\_P2P\_SendPacket to the host after closing. By default SendPacket opens a connection if none exists, and the host’s transport accepts it.

The EOS Plugin for Unity doesn’t include a Mirror transport, so the EOS Transport you’re using is third-party. The late send is most likely Mirror still sending during its own shutdown, after the P2P connection was already closed in response to the lobby leave. To fix it:

1) Stop Mirror first (StopClient / StopHost) and wait for the transport to finish shutting down, then close the P2P connection, then call LeaveLobby / DestroyLobby.

2) If that isn’t enough, the fix belongs in the transport’s disconnect path: send any final message before CloseConnection, and drop sends for a connection it has already closed instead of passing them to EOS.

If it still reconnects after that, create a private discussion and send us full verbose logs from both devices covering the leave.
