X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fnetwork%2Fserv_networkclient.c;h=5171a295ea4f3d25748353dda2c13c03175308d6;hb=0ca1d79e24b57ed59ab3c2e81f04c9463c3a1c5b;hp=7ea3ef70bc47b017d12d51e8ab319e0f33bea095;hpb=2dff3764daf64c3ad1cabd92da2385331e05db3a;p=citadel.git diff --git a/citadel/modules/network/serv_networkclient.c b/citadel/modules/network/serv_networkclient.c index 7ea3ef70b..5171a295e 100644 --- a/citadel/modules/network/serv_networkclient.c +++ b/citadel/modules/network/serv_networkclient.c @@ -86,6 +86,7 @@ #include "netconfig.h" #include "ctdl_module.h" + /* * receive network spool from the remote system */ @@ -381,7 +382,8 @@ bail: * Set "full" to nonzero to force a poll of every node, or to zero to poll * only nodes to which we have data to send. */ -void network_poll_other_citadel_nodes(int full_poll) { +void network_poll_other_citadel_nodes(int full_poll, char *working_ignetcfg) +{ int i; char linebuf[256]; char node[SIZ]; @@ -430,6 +432,7 @@ void network_poll_other_citadel_nodes(int full_poll) { void network_do_clientqueue(void) { + char *working_ignetcfg; int full_processing = 1; static time_t last_run = 0L; @@ -444,13 +447,15 @@ void network_do_clientqueue(void) ); } - + working_ignetcfg = load_working_ignetcfg(); /* * Poll other Citadel nodes. Maybe. If "full_processing" is set * then we poll everyone. Otherwise we only poll nodes we have stuff * to send to. */ - network_poll_other_citadel_nodes(full_processing); + network_poll_other_citadel_nodes(full_processing, working_ignetcfg); + if (working_ignetcfg) + free(working_ignetcfg); }