From 1633010130c058d6cee6b5327800b4dea6ead0f0 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 5 Aug 2021 12:42:16 +0100 Subject: [PATCH] WS build fix. --- src/websockets.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/websockets.c b/src/websockets.c index bc4f2497..46688a2e 100644 --- a/src/websockets.c +++ b/src/websockets.c @@ -175,7 +175,7 @@ static int callback_mqtt( } mosq->sock = lws_get_socket_fd(wsi); HASH_ADD(hh_sock, db.contexts_by_sock, sock, sizeof(mosq->sock), mosq); - mux__add_in(mosq); + mux__new(mosq); break; case LWS_CALLBACK_CLOSED: @@ -258,7 +258,6 @@ static int callback_mqtt( #endif packet__get_next_out(mosq); - packet__cleanup(packet); mosquitto__free(packet); mosq->next_msg_out = db.now_s + mosq->keepalive;