teamspeak2 plugin: Flush the sending filehandle after writing to it.
[collectd.git] / src / teamspeak2.c
index 23a04d6..6f6dd04 100644 (file)
@@ -291,6 +291,7 @@ static int tss2_send_request (FILE *fh, const char *request)
                tss2_close_socket ();
                return (-1);
        }
+       fflush (fh);
 
        return (0);
 } /* int tss2_send_request */