void OnDestroy() { if (conn != null) { conn.Dispose(); conn = null; } if (quiche != null) { quiche.Dispose(); quiche = null; } if (client != null) { client.Dispose(); client = null; } }
void OnDestroy() { if (h3Conn != null) { h3Conn.Dispose(); h3Conn = null; } if (h3Config != null) { h3Config.Dispose(); h3Config = null; } if (quicheClient != null) { quicheClient.Dispose(); quicheClient = null; } if (udpClient != null) { udpClient.Dispose(); udpClient = null; } }