Need to include bridges here.

This commit is contained in:
Roger A. Light
2014-07-08 23:29:16 +01:00
parent 9bb336bbf3
commit 0ff0cfb3d3
+1 -1
View File
@@ -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);