From 900fd12ec3d7588448455fc3cd2f7887ab0fd488 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 12 Oct 2007 18:20:25 +0200 Subject: [PATCH] network plugin: Flush the buffer in the `shutdown' function.. --- src/network.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.11.0