summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-03-16 22:57:34 -0300
committerTingPing <tngpng@gmail.com>2013-03-16 22:57:34 -0300
commite8a78b9aa1398deb69d20d599be2a630f721cafa (patch)
tree5409023fb3a7e04485eaa7ca24e79a117f31943e /src
parent69e1ed42783ba9ef3c7f9acfc090ad53fb120476 (diff)
Handle EOF in text-fe
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/fe-text.c2
1 files changed, 1 insertions, 1 deletions
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 {