From: Florian Forster Date: Fri, 12 Oct 2007 16:20:25 +0000 (+0200) Subject: network plugin: Flush the buffer in the `shutdown' function.. X-Git-Tag: collectd-4.1.3~4^2~1 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=900fd12ec3d7588448455fc3cd2f7887ab0fd488;p=collectd.git network plugin: Flush the buffer in the `shutdown' function.. --- diff --git a/src/network.c b/src/network.c index 84e77733..5ae36c10 100644 --- a/src/network.c +++ b/src/network.c @@ -1277,8 +1277,6 @@ static int network_config (const char *key, const char *val) static int network_shutdown (void) { - DEBUG ("Shutting down."); - listen_loop++; if (listen_thread != (pthread_t) 0) @@ -1288,7 +1286,8 @@ static int network_shutdown (void) listen_thread = (pthread_t) 0; } - listen_thread = 0; + if (send_buffer_fill > 0) + flush_buffer (); if (cache_tree != NULL) {