mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-07 08:24:15 +07:00
Fix pubsub example
CL: Mongoose Web Server: Fix publish-subscribe example PUBLISHED_FROM=04fdb66c1d4eb56798a5be2634f9f9bb2f18f288
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user