avoid writing <= 0 bytes to clients
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 9 Dec 2010 21:04:22 +0000 (21:04 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 9 Dec 2010 21:04:22 +0000 (21:04 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@55433 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c

index 4349e26..4117598 100644 (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