From e8a78b9aa1398deb69d20d599be2a630f721cafa Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 16 Mar 2013 22:57:34 -0300 Subject: Handle EOF in text-fe --- src/fe-text/fe-text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fe-text/fe-text.c b/src/fe-text/fe-text.c index 451e9074..f603f43e 100644 --- a/src/fe-text/fe-text.c +++ b/src/fe-text/fe-text.c @@ -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 { -- cgit 1.4.1