Skip to content

Commit d9bf84e

Browse files
2.1.0
- Fixed ClientId 32767 not found error when being used with Multipass.
1 parent d5e6aad commit d9bf84e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

FishNet/Plugins/FishyFacepunch/CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.1.0
2+
- Fixed ClientId 32767 not found error when being used with Multipass.
3+
14
2.0.0
25
- FishNetworking 2.0.0 support.
36

FishNet/Plugins/FishyFacepunch/Core/ServerSocket.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,18 +390,22 @@ internal void OnClientHostState(bool started)
390390
};
391391

392392
//If not started flush incoming from local client.
393-
if (!started)
393+
if (!started && _clientHostStarted)
394394
{
395395
base.ClearQueue(_clientHostIncoming);
396396
base.Transport.HandleRemoteConnectionState(new RemoteConnectionStateArgs(RemoteConnectionState.Stopped, FishyFacepunch.CLIENT_HOST_ID, Transport.Index));
397397
_steamIds.Remove(steamId);
398398
}
399-
else
399+
//If started.
400+
else if (started)
400401
{
401402
_steamIds[steamId] = FishyFacepunch.CLIENT_HOST_ID;
402403
base.Transport.HandleRemoteConnectionState(new RemoteConnectionStateArgs(RemoteConnectionState.Started, FishyFacepunch.CLIENT_HOST_ID, Transport.Index));
403404
}
405+
406+
_clientHostStarted = started;
404407
}
408+
405409
/// <summary>
406410
/// Queues a received packet from the local client.
407411
/// </summary>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.1
1+
2.1.0

0 commit comments

Comments
 (0)