From 9b126ca498e5c26a51997c9a87b5b01b152244fa Mon Sep 17 00:00:00 2001 From: turret Date: Thu, 11 Jan 2024 19:15:07 +0000 Subject: net: minor optimisations break out of WSS compatability checker loop when we find a valid match for wss --- net/net.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net/net.c') diff --git a/net/net.c b/net/net.c index da8680d..a1f013b 100644 --- a/net/net.c +++ b/net/net.c @@ -26,8 +26,10 @@ void net_get_gateway_url() const char * const* curl_protocols = curl_version->protocols; int wss_supported = 0; for(int i = 0; curl_protocols[i]; ++i) { - if(strcmp(curl_protocols[i], "wss") == 0) + if(strcmp(curl_protocols[i], "wss") == 0) { wss_supported = 1; + break; + } } if(!wss_supported) -- cgit v1.2.3