From 6e5aeb57b3c01b185312b2070967bb0c1139ee69 Mon Sep 17 00:00:00 2001 From: Luciano Iam Date: Fri, 8 May 2020 14:20:40 +0200 Subject: [PATCH] WebSockets: fix LWS_WITH_EXTERNAL_POLL check --- libs/surfaces/websockets/server.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/surfaces/websockets/server.cc b/libs/surfaces/websockets/server.cc index 72edffd8cf..d56e839ed9 100644 --- a/libs/surfaces/websockets/server.cc +++ b/libs/surfaces/websockets/server.cc @@ -110,6 +110,10 @@ WebsocketsServer::WebsocketsServer (ArdourSurface::ArdourWebsockets& surface) int WebsocketsServer::start () { + if (_lws_context) { + stop (); + } + _lws_context = lws_create_context (&_lws_info); if (!_lws_context) {