summaryrefslogtreecommitdiff
path: root/src/worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c
index d0b4f52..03be16c 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -88,7 +88,7 @@ static gboolean watch_output( GIOChannel *channel, GIOCondition condition, gpoin
gchar *buf;
gsize len;
- if( condition == G_IO_HUP ) {
+ if( ( condition & G_IO_HUP ) == G_IO_HUP ) {
g_io_channel_unref( channel );
return FALSE;
}