Skip to content

Commit f6720b5

Browse files
fix null reference exception in web socket transport when shutting down a host (#206)
1 parent 69ff9c8 commit f6720b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Transports/com.community.netcode.transport.websocket/Runtime/WebSocketTransport.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class WebSocketTransport : NetworkTransport
2424

2525
public override void DisconnectLocalClient()
2626
{
27+
if (WebSocketClient == null) return;
2728
WebSocketClient.Close();
2829
}
2930

0 commit comments

Comments
 (0)