diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index b2cee95b6d7d588e502e809027abb510370d9514..3e9253017906dfab217dfa864fd6858f2750171f 100644 (file)
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
return -1;
}
- if (sock->wbuf != NULL)
+ if (sock->wbuf != NULL && rc == RESP_OK)
{
wrote = 0;
while (wrote < sock->wbuf_len)