Skip to content

Commit

Permalink
fix: fixing recorder not taking reference to client
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Aug 21, 2024
1 parent 712d6d2 commit 21693d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mirage.Profiler/Runtime/NetworkProfilerRecorder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class NetworkProfilerRecorder : MonoBehaviour
public static NetworkProfilerRecorder Instance { get; private set; }

public NetworkServer Server;
public NetworkServer Client;
public NetworkClient Client;

/// <summary>
/// instance being used for profiler
Expand Down Expand Up @@ -107,7 +107,7 @@ private void ServerStopped()
instance = null;
}

private void ClientStopped(INetworkPlayer arg0)
private void ClientStopped(ClientStoppedReason _)
{
if (instance == (object)Client)
instance = null;
Expand Down

0 comments on commit 21693d1

Please sign in to comment.