Fix: Make remote disconnect detection work

This commit is contained in:
Denis Kenzior 2010-01-14 10:25:14 -06:00
parent 8fe8220b23
commit aec5b8a44f
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond,
if (cond & (G_IO_HUP | G_IO_ERR))
return FALSE;
if (err != G_IO_ERROR_NONE && err != G_IO_ERROR_AGAIN)
if (rbytes == 0 && err != G_IO_ERROR_AGAIN)
return FALSE;
return TRUE;