aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-31 09:19:40 +0100
committerMax Kellermann <max@duempel.org>2008-10-31 09:19:40 +0100
commit5ef17ac1aa9839208513be67a64fbf78658cf21e (patch)
tree13513e5990660098fd3d468f062e48c95974550b /src/client.c
parentb7ee6febaa4f11fb6f795e0f60f5eba7b668d5ed (diff)
downloadmpd-5ef17ac1aa9839208513be67a64fbf78658cf21e.tar.gz
mpd-5ef17ac1aa9839208513be67a64fbf78658cf21e.tar.xz
mpd-5ef17ac1aa9839208513be67a64fbf78658cf21e.zip
client: don't try again after partial write
After a partial write, chances are vanishing that another write() will succeed. Don't try immediately.
Diffstat (limited to '')
-rw-r--r--src/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c
index 50f4a1ee8..2a69dd7fb 100644
--- a/src/client.c
+++ b/src/client.c
@@ -615,6 +615,7 @@ static void client_write_deferred(struct client *client)
client->deferred_bytes -= ret;
buf->size -= ret;
memmove(buf->data, buf->data + ret, buf->size);
+ break;
} else {
size_t decr = sizeof(*buf) -
sizeof(buf->data) + buf->size;