aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/net.c4
1 files changed, 3 insertions, 1 deletions
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)