mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mqtt: fix issue that unsubscribe wildcard topic assert failed
This commit is contained in:
parent
a08ffcbf3e
commit
15dec8ef90
1 changed files with 1 additions and 1 deletions
|
@ -2325,7 +2325,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__);
|
||||
|
|
Loading…
Add table
Reference in a new issue