avoid writing <= 0 bytes to clients

SVN revision: 55433
This commit is contained in:
Mike Blumenkrantz 2010-12-09 21:04:22 +00:00
parent 4912e6dc4f
commit e17077e3f4
1 changed files with 1 additions and 0 deletions

View File

@ -2295,6 +2295,7 @@ _ecore_con_client_flush(Ecore_Con_Client *cl)
if (!count)
{
num = cl->buf_size - cl->buf_offset;
if (num <= 0) return;
if (!(cl->host_server->type & ECORE_CON_SSL))
count = write(cl->fd, cl->buf + cl->buf_offset, num);
else