Browse code

lwsc: set ws_ping_pong_interval only for libwebsockets 3.x

Daniel-Constantin Mierla authored on 06/05/2021 09:37:58
Showing 1 changed files
... ...
@@ -529,7 +529,7 @@ static lwsc_endpoint_t* lwsc_get_endpoint(str *wsurl, str *wsproto)
529 529
 	ep->crtinfo.protocols = ep->protocols;
530 530
 	ep->crtinfo.gid = -1;
531 531
 	ep->crtinfo.uid = -1;
532
-#if LWS_LIBRARY_VERSION_MAJOR >= 3
532
+#if LWS_LIBRARY_VERSION_MAJOR == 3
533 533
 	ep->crtinfo.ws_ping_pong_interval = 5; /*secs*/
534 534
 #endif
535 535
 	/* 1 internal and 1 (+ 1 http2 nwsi) */