Fix pubsub example

CL: Mongoose Web Server: Fix publish-subscribe example

PUBLISHED_FROM=04fdb66c1d4eb56798a5be2634f9f9bb2f18f288
This commit is contained in:
Dmitry Frank
2018-01-30 14:35:14 +00:00
committed by Cesanta Bot
parent 255da78bed
commit f084ad8008
@@ -36,7 +36,7 @@ static void server_handler(struct mg_connection *nc, int ev, void *p) {
struct mg_connection *c;
for (c = mg_next(nc->mgr, NULL); c != NULL; c = mg_next(nc->mgr, c)) {
if (!(c->flags |= MG_F_USER_2)) continue; // Skip non-client connections
if (!(c->flags & MG_F_USER_2)) continue; // Skip non-client connections
mg_send(c, io->buf, io->len);
}
mbuf_remove(io, io->len);