Skip to content

Commit 9524067

Browse files
authored
Fix NRE (NullReferenceException) (#194)
1 parent e9f53f8 commit 9524067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transports/com.community.netcode.transport.facepunch/Runtime/FacepunchTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private void OnDestroy()
7575

7676
public override void DisconnectLocalClient()
7777
{
78-
connectionManager.Connection.Close();
78+
connectionManager?.Connection.Close();
7979

8080
if (LogLevel <= LogLevel.Developer)
8181
Debug.Log($"[{nameof(FacepunchTransport)}] - Disconnecting local client.");

0 commit comments

Comments
 (0)