Handle EOF in text-fe

This commit is contained in:
TingPing 2013-03-16 22:57:34 -03:00
parent 69e1ed4278
commit e8a78b9aa1
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ handle_line (GIOChannel *channel, GIOCondition cond, gpointer data)
GIOStatus result;
result = g_io_channel_read_line(channel, &str_return, &length, &terminator_pos, &error);
if (result == G_IO_STATUS_ERROR) {
if (result == G_IO_STATUS_ERROR || result == G_IO_STATUS_EOF) {
return FALSE;
}
else {