mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-15 10:29:47 +00:00
Fix #1458 - fail on example build error, and fix examples/mqtt-server
This commit is contained in:
1 parent
fbf5fa53c6
commit
768f67ae0a
2 files changed
+2
-2
No files matched your search
@@ -78,7 +78,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
for (struct sub *sub = s_subs; sub != NULL; sub = sub->next) {
|
||||
if (mg_globmatch(sub->topic.ptr, sub->topic.len, mm->topic.ptr,
|
||||
mm->topic.len)) {
|
||||
mg_mqtt_pub(sub->c, &mm->topic, &mm->data, 1, false);
|
||||
mg_mqtt_pub(sub->c, mm->topic, mm->data, 1, false);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user