git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40489
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
* socket only if errno does _not_ indicate that there may be more data to read.
*/
if (ret == 0)
* socket only if errno does _not_ indicate that there may be more data to read.
*/
if (ret == 0)
+ m_detected = GSOCK_LOST_FLAG;
+ Close();
+ // Signal an error for return
+ return -1;
+ }
else if (ret == -1)
{
if ((errno == EWOULDBLOCK) || (errno == EAGAIN))
else if (ret == -1)
{
if ((errno == EWOULDBLOCK) || (errno == EAGAIN))