diff options
-rw-r--r-- | src/core/net-nonblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/net-nonblock.c b/src/core/net-nonblock.c index 73260381..f029b14d 100644 --- a/src/core/net-nonblock.c +++ b/src/core/net-nonblock.c @@ -47,7 +47,7 @@ static int g_io_channel_write_block(GIOChannel *channel, void *data, int len) err = g_io_channel_write(channel, (char *) data + sent, len-sent, &ret); sent += ret; - } while (ret < len && !is_fatal_error(err)); + } while (sent < len && !is_fatal_error(err)); return err != 0 ? -1 : 0; } |