From 6cc59ad8e6dbc46595f48ebec862cb8ed658019b Mon Sep 17 00:00:00 2001 From: Luciano Iam Date: Mon, 14 Jun 2021 12:25:27 +0200 Subject: [PATCH] WebSockets: update some comments in source Based on feedback from libwebsockets author https://github.com/warmcat/libwebsockets/issues/2322#issuecomment-860572124 --- libs/surfaces/websockets/server.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/surfaces/websockets/server.cc b/libs/surfaces/websockets/server.cc index c6291e47fa..d6e461a771 100644 --- a/libs/surfaces/websockets/server.cc +++ b/libs/surfaces/websockets/server.cc @@ -140,12 +140,12 @@ WebsocketsServer::start () #endif if (_lws_context) { - /* LWS_WITH_GLIB was enabled for Ardour build environment libwebsockets - and also for the version the user has installed in their system */ + /* Keep in mind _lws_context can be != 0 even when the user's + libwebsockets does not support LWS_SERVER_OPTION_GLIB ! + This is by libwebsockets design */ PBD::info << "ArdourWebsockets: using event loop integration method 1" << endmsg; } else { - /* Either Ardour build environment libwebsockets was not configured with - LWS_WITH_GLIB enabled or user installed library is missing the feature */ + /* More compatible approach */ _fd_callbacks = true; _lws_info.foreign_loops = 0; _lws_info.options = 0;