1
0
Fork 0
mirror of https://libwebsockets.org/repo/libwebsockets synced 2025-09-22 23:41:04 +00:00

mqtt: allow unsubscribe wildcard topic to fail quietly

This commit is contained in:
Lucas 2024-11-21 08:48:05 +00:00 committed by Andy Green
commit 70d30ad0a0

View file

@ -2327,7 +2327,7 @@ lws_mqtt_client_send_unsubcribe(struct lws *wsi,
for (n = 0; n < unsub->num_topics; n++) {
mysub = lws_mqtt_find_sub(nwsi->mqtt,
unsub->topic[n].name);
assert(mysub);
//assert(mysub);
if (mysub && --mysub->ref_count == 0) {
lwsl_notice("%s: Need to send UNSUB\n", __func__);