summaryrefslogtreecommitdiffstats
path: root/daemon/echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/echo.c')
-rw-r--r--daemon/echo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/daemon/echo.c b/daemon/echo.c
index 34b38737..91fd4ab3 100644
--- a/daemon/echo.c
+++ b/daemon/echo.c
@@ -51,10 +51,8 @@ static gboolean session_event(GIOChannel *chan, GIOCondition cond, gpointer data
gsize len, written;
GIOError err;
- if (cond & (G_IO_HUP | G_IO_ERR)) {
- g_io_channel_unref(chan);
+ if (cond & (G_IO_HUP | G_IO_ERR))
return FALSE;
- }
err = g_io_channel_read(chan, (gchar *) buf, sizeof(buf), &len);
if (err == G_IO_ERROR_AGAIN)