only log error events for actual errors
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 15 Feb 2011 20:17:48 +0000 (20:17 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 15 Feb 2011 20:17:48 +0000 (20:17 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@57065 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c

index cb8c328..dbf1039 100644 (file)
@@ -2046,7 +2046,7 @@ _ecore_con_cl_read(Ecore_Con_Server *svr)
         /* 0 is not a valid return value for a tcp socket */
         if ((num > 0) || ((num < 0) && (errno == EAGAIN)))
            lost_server = EINA_FALSE;
-        else
+        else if (num < 0)
           ecore_con_event_server_error(svr, strerror(errno));
      }
    else
@@ -2257,7 +2257,7 @@ _ecore_con_svr_cl_read(Ecore_Con_Client *cl)
         /* 0 is not a valid return value for a tcp socket */
         if ((num > 0) || ((num < 0) && ((errno == EAGAIN) || (errno == EINTR))))
           lost_client = EINA_FALSE;
-        else
+        else if (num < 0)
           ecore_con_event_client_error(cl, strerror(errno));
      }
    else