From 0ff0cfb3d30682d964e5723d2b3c6e02143f9625 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Tue, 8 Jul 2014 23:29:16 +0100 Subject: [PATCH] Need to include bridges here. --- src/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loop.c b/src/loop.c index 8990ccff..5914e6f3 100644 --- a/src/loop.c +++ b/src/loop.c @@ -98,7 +98,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, int *listensock, int listensock } #endif - context_count = HASH_CNT(hh_sock, db->contexts_by_sock); + context_count = HASH_CNT(hh_sock, db->contexts_by_sock) + HASH_CNT(hh_bridge, db->contexts_bridge); if(listensock_count + context_count > pollfd_count || !pollfds){ pollfd_count = listensock_count + context_count; pollfds = _mosquitto_realloc(pollfds, sizeof(struct pollfd)*pollfd_count);