mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Fix pubsub example
CL: Mongoose Web Server: Fix publish-subscribe example PUBLISHED_FROM=04fdb66c1d4eb56798a5be2634f9f9bb2f18f288
This commit is contained in:
1 parent
255da78bed
commit
f084ad8008
1 file changed
+1
-1
@@ -36,7 +36,7 @@ static void server_handler(struct mg_connection *nc, int ev, void *p) {
|
|||||||
struct mg_connection *c;
|
struct mg_connection *c;
|
||||||
|
|
||||||
for (c = mg_next(nc->mgr, NULL); c != NULL; c = mg_next(nc->mgr, 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);
|
mg_send(c, io->buf, io->len);
|
||||||
}
|
}
|
||||||
mbuf_remove(io, io->len);
|
mbuf_remove(io, io->len);
|
||||||
|
|||||||
Reference in new issue
Block a user